OFFSET
0,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..100
Eric Weisstein's World of Mathematics, Next Prime
Eric Weisstein's World of Mathematics, Pi-Prime
FORMULA
EXAMPLE
a(6) = 3141601, since this is the smallest prime >= floor(Pi*10^6) = 3141592.
Pi = 3.1415926535897932384626433832795028841971…
MATHEMATICA
Table[NextPrime[Floor[Pi 10^n] - 1], {n, 0, 20}]
Module[{nn=30, pid}, pid=RealDigits[Pi, 10, nn][[1]]; Table[NextPrime[FromDigits[Take[pid, n]]-1], {n, nn}]] (* Harvey P. Dale, Mar 01 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Ilya Gutkovskiy, Aug 24 2016
STATUS
approved