OFFSET
1,3
FORMULA
a(n) = 2n - 1 - A285786(n). - Ralf Steiner, Jul 30 2017
MATHEMATICA
Table[Count[Select[Range[2(n-1)^2, 2 n^2], !PrimeQ[#]&&OddQ[#]&&(#>1) &], _Integer], {n, 1, 100}]
Table[2 n - 1 - (PrimePi[2 n^2] - PrimePi[2 (n - 1)^2]), {n, 1, 100}] (* Ralf Steiner, Jul 30 2017 *)
PROG
(PARI) a(n) = sum(k=2*(n-1)^2, 2*n^2, (k%2) && (k!=1) && !isprime(k)); \\ Michel Marcus, Jul 01 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Ralf Steiner, Jul 01 2017
STATUS
approved