OFFSET
1,1
LINKS
Bill McEachen, Table of n, a(n) for n = 1..11
Chris K. Caldwell's The Top Twenty, Primorial.
Romeo Mestrovic, Euclid's theorem on the infinitude of primes: a historical survey of its proofs (300 BC--2012) and another new proof, arXiv preprint arXiv:1202.3670 [math.HO], 2012. - N. J. A. Sloane, Jun 13 2012
MATHEMATICA
Select[FoldList[Times, 1, Prime[Range[70]]], PrimeQ[# - 1] &] - 1 (* Harvey P. Dale, Jan 27 2014 *)
PROG
(Haskell)
a057705 n = a057705_list !! (n-1)
a057705_list = filter ((== 1) . a010051) a057588_list
-- Reinhard Zumkeller, Mar 27 2013
(PARI)
default(nbthreads, 6)
build_primorials(n)={my(acc=1, v=vector(n)); for(k=1, n, acc*=prime(k); v[k]=acc); v; }
less1(x)=if(isprime(x-1), x-1, 0);
listaa(pm=67)={my(primorials=build_primorials(pm));
my(hits=parapply(less1, primorials)); \\multithread
select(x->x>0, hits); } \\ Bill McEachen, May 17 2026
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
Labos Elemer, Oct 24 2000
STATUS
approved
