OFFSET
1,1
LINKS
Georg Fischer, Table of n, a(n) for n = 1..1500 [first 162 terms from K. D. Bajpai]
EXAMPLE
a(2)=113: Pi*6^2 = 113.09 and 113 is prime.
a(3)=907: Pi*17^2 = 907.92 and 907 is prime.
MAPLE
select(isprime, {seq(floor(Pi*n^2), n=1..1000)}); [corrected by Georg Fischer, Spe 27 2024]
MATHEMATICA
Select[Floor[Pi*Range[400]^2], PrimeQ] (* Harvey P. Dale, Dec 18 2016 *)
PROG
(PARI) is(n)=my(r=sqrtint((n+1)\Pi)); Pi*r^2>n && isprime(n) \\ Charles R Greathouse IV, Sep 23 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Sep 23 2013
STATUS
approved