OFFSET
1,2
COMMENTS
This sequence is the union of the sequences {n!/p: p | n! and p is prime}. Thus this sequence is infinite.
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..1000
PROG
(PARI)
a(n)=for(k=1, n+2, s=k!/n; if(floor(s)==s, if(ispseudoprime(s), return(k))))
n=1; while(n<10000, if(a(n), print1(n, ", ")); n++)
(PARI)
v=[]; for(n=1, 50, forprime(p=1, n, v=concat(v, n!/p))); vecsort(v) \\ faster program
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Aug 16 2014
STATUS
approved