OFFSET
1,1
FORMULA
EXAMPLE
Up to 25 = prime(3)^2, the 16 nonprimes are 1, 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 25.
PROG
(PARI) a(n) = prime(n)^2 - primepi(prime(n)^2); \\ Michel Marcus, Oct 28 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Labos Elemer, Feb 16 2000
STATUS
approved