OFFSET
1,2
LINKS
FORMULA
PROG
(PARI)
default(primelimit, (2^31)+(2^30));
A005940(n) = { my(p=2, t=1); n--; until(!n\=2, if((n%2), (t*=p), p=nextprime(p+1))); t }; \\ Modified from code of M. F. Hasler
for(n=1, 10000, write("b246367.txt", n, " ", A246367(n)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 26 2014
STATUS
approved