OFFSET
1,2
COMMENTS
a(n) > A071538(n);
(25,27) is the smallest pair of prime powers (q,q+2) such that both q and q+2 are not primes, conjecture: there are more (but not < 10^6).
LINKS
Eric Weisstein's World of Mathematics, Prime Power
EXAMPLE
a(10) = Card{(p^0,3), (2,2^2), (3,5), (5,7), (7,3^2), (3^2,11)} = 6.
PROG
(PARI) ispp(n) = (n==1) || isprimepower(n);
a(n) = sum(k=1, n, ispp(k) && ispp(k+2)); \\ Michel Marcus, Jun 24 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 14 2006
STATUS
approved