OFFSET
1,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
n = 5 and 25 is the 15th composite number: 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 22, 24, 25.
MATHEMATICA
Table[n^2-(PrimePi[n^2])-1, {n, 128}]
PROG
(PARI) { default(primelimit, 4294965247); for (n=1, 1000, f=n^2; a=f - primepi(f) - 1; write("b065893.txt", n, " ", a) ) } \\ Harry J. Smith, Nov 04 2009
(Magma) [n^2 -1 -#PrimesUpTo(n^2): n in [1..130]]; // G. C. Greubel, Aug 24 2024
(SageMath) [n^2 -1 -prime_pi(n^2) for n in range(1, 131)] # G. C. Greubel, Aug 24 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 28 2001
STATUS
approved