OFFSET
1,2
LINKS
FORMULA
PROG
(PARI)
allocatemem(2^30);
default(primelimit, 4294965247);
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, t = A269848(n); print1(t, ", "); write("b269848.txt", n, " ", t));
(Scheme, with memoization-macro definec)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 06 2016
STATUS
proposed