login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A276199 Smallest prime that begins with at least n digits of Pi. 1
3, 31, 31469, 314107, 314159, 314159, 314159207, 3141592603, 31415926541, 314159265307, 314159265359, 3141592653581, 314159265358909, 3141592653589711, 31415926535897921, 314159265358979347, 3141592653589793239, 3141592653589793239, 314159265358979323861 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Dana Jacobsen, Table of n, a(n) for n = 1..997 (first 28 terms from José Eduardo Gaboardi de Carvalho)

EXAMPLE

a(7) = 314159207, begins with first 7 digits of Pi = 3.141592653...

PROG

(Perl) use ntheory ":all"; sub a276199 { my $l=shift; my $p="3".substr(Pi($l+20), 2, $l-1); for my $dig (0 .. 20) { my $add = "0" x $dig; do { return "$p$add" if is_prime("$p$add"); } while length(++$add) == $dig; } } # Dana Jacobsen, Aug 30 2016

CROSSREFS

Cf. A005042.

Sequence in context: A261472 A144964 A168678 * A118913 A297480 A282973

Adjacent sequences:  A276196 A276197 A276198 * A276200 A276201 A276202

KEYWORD

nonn,base

AUTHOR

José Eduardo Gaboardi de Carvalho, Aug 24 2016

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 12:02 EDT 2021. Contains 343839 sequences. (Running on oeis4.)