|
|
A068837
|
|
Smallest prime with concatenation of first n odd numbers as leading digits.
|
|
2
|
|
|
11, 13, 13513, 13577, 135799, 135791107, 13579111307, 1357911131503, 13579111315171, 135791113151719, 1357911131517192157, 13579111315171921231, 135791113151719212325007, 1357911131517192123252763, 13579111315171921232527291, 135791113151719212325272931
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
PROG
|
(Python)
from sympy import isprime
from itertools import count
def a(n):
prefix = int("".join(map(str, (2*i+1 for i in range(n)))))
if isprime(prefix): return prefix
for extra in count(1):
prefix *= 10
for i in range(10**extra):
t = prefix + i
if isprime(t): return t
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
a(6)-a(8) and a(13) corrected and more terms from Sean A. Irvine, Mar 17 2024
|
|
STATUS
|
approved
|
|
|
|