cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A082671 Numbers n such that (n!-2)/2 is a prime.

Original entry on oeis.org

3, 4, 5, 6, 9, 31, 41, 373, 589, 812, 989, 1115, 1488, 1864, 1918, 4412, 4686, 5821, 13830
Offset: 1

Views

Author

Cino Hilliard, May 18 2003

Keywords

Examples

			(4!-2)/2 = 11 is a prime.
		

Crossrefs

Programs

  • Magma
    [n: n in [1..600]| IsPrime((Factorial(n)-2) div 2)]; // Vincenzo Librandi, Feb 18 2015
  • Mathematica
    Select[Range[0, 14000], PrimeQ[(#! - 2) / 2] &] (* Vincenzo Librandi, Feb 18 2015 *)
  • PARI
    xfactpk(n,k=2) = { for(x=2,n, y = (x!-k)/k; if(isprime(y),print1(x", ")) ) }
    

Extensions

More terms from Herman Jamke (hermanjamke(AT)fastmail.fm), Jan 03 2008
Edited by T. D. Noe, Oct 30 2008

A139199 Numbers k such that (k!-4)/4 is prime.

Original entry on oeis.org

4, 5, 6, 7, 8, 10, 15, 18, 23, 157, 165, 183, 184, 362, 611, 908, 2940, 6875, 9446, 16041
Offset: 1

Views

Author

Artur Jasinski, Apr 11 2008

Keywords

Comments

Numbers k such that (k!-m)/m is prime:
for m=1 see A002982
for m=2 prime or pseudoprime see A082671
for m=3 see A139056
for m=4 see A139199
for m=5 see A139200
for m=6 see A139201
for m=7 see A139202
for m=8 see A139203
for m=9 see A139204
for m=10 see A139205
a(17) > 2000 - Ray G. Opao, Sep 30 2008
a(21) > 25000 - Robert Price, Sep 25 2016

Crossrefs

Programs

  • Mathematica
    a = {}; Do[If[PrimeQ[(n! - 4)/4], Print[a]; AppendTo[a, n]], {n, 1, 184}]; a (*Artur Jasinski*)
  • PARI
    is(n)=n>3 && isprime(n!/4-1) \\ Charles R Greathouse IV, Apr 29 2015

Extensions

a(15)-a(16) from Ray G. Opao, Sep 30 2008
a(17) from Serge Batalov, Feb 18 2015
a(18)-a(20) from Robert Price, Sep 25 2016

A290121 Primes of the form k!/8 - 1.

Original entry on oeis.org

2, 89, 5039, 453599, 4989599, 2615348735999, 15205637551103999, 32327905188896022580370544394201497496149704048639999999999, 68043117384680383000466155030980344080536633048599859316607515858708885143551999999999999999
Offset: 1

Views

Author

Robert Price, Jul 19 2017

Keywords

Crossrefs

Programs

  • Mathematica
    Select[Table[k! / 8 - 1, {k, 4, 100}], PrimeQ[#]&]

Formula

a(n) = A139183(A139203(n)). - Elmo R. Oliveira, Apr 16 2025

Extensions

Missing terms inserted by Alois P. Heinz, Dec 05 2024
Showing 1-3 of 3 results.