OFFSET
1,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..60
Chris Caldwell and G. L. Honaker, Jr., Prime curio for 15
EXAMPLE
a(4)=50 because Pi*50=157.07963... is closer to a prime than any previous value of n.
PROG
(PARI) r=1; forprime(p=2, 1e6, n=round(p/Pi); t=abs(p-Pi*n); if(t<r, r=t; print1(n", "))) \\ Charles R Greathouse IV, Apr 18 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
G. L. Honaker, Jr., Apr 18 2013
EXTENSIONS
Additional terms from Mike Keith (mikek314(at)gmail.com)
STATUS
approved