OFFSET
2,2
EXAMPLE
For n=2, 2*2 - 2 = 2 and pi(2) = 1.
For n=3, 2*3 - 3 = 3, pi(3)=2.
MATHEMATICA
Table[Max[PrimePi[Flatten[Select[IntegerPartitions[2 n, {2}], AllTrue[#, PrimeQ] &]]]], {n, 2, 101}]
PROG
(PARI) a(n) = forprime(q=2, n, if(isprime(2*n-q), return(primepi(2*n-q)))); \\ Michel Marcus, Nov 16 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Eduardo Beleza Yamagishi, Nov 13 2024
STATUS
approved