OFFSET
1,2
LINKS
FORMULA
PROG
(PARI)
default(primelimit, (2^31)+(2^30));
A002808(n) = { my(k=-1); while( -n + n += -k + k=primepi(n), ); n }; \\ This function from M. F. Hasler
A064989(n) = {my(f); f = factor(n); if((n>1 && f[1, 1]==2), f[1, 2] = 0); for (i=1, #f~, f[i, 1] = precprime(f[i, 1]-1)); factorback(f)};
for(n=1, 52, write("b246368.txt", n, " ", A246368(n)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 26 2014
STATUS
approved