login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A069589 Smallest prime in which the n-th significant digit is a 3. 8
3, 31, 307, 3001, 30011, 300007, 3000017, 30000001, 300000007, 3000000019, 30000000001, 300000000077, 3000000000013, 30000000000011, 300000000000089, 3000000000000037, 30000000000000029, 300000000000000011, 3000000000000000037, 30000000000000000041 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
seq(nextprime(3*10^(j-1)-1), j=1..32);
MATHEMATICA
Join[{3}, Table[NextPrime[FromDigits[PadRight[{3}, n, 0]]], {n, 2, 20}]] (* Harvey P. Dale, Jun 15 2015 *)
PROG
(Python)
from sympy import nextprime
def a(n): return nextprime(3*10**(n-1)-1)
print([a(n) for n in range(1, 21)]) # Michael S. Branicky, Mar 31 2021
(PARI) a(n) = nextprime(3*10^(n-1)); \\ Michel Marcus, Mar 31 2021
CROSSREFS
Cf. A069588.
Sequence in context: A348709 A220997 A222094 * A222090 A037778 A037666
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 25 2002
EXTENSIONS
More terms from Sascha Kurz, Mar 28 2002
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)