|
|
A069151
|
|
Concatenations of consecutive primes, starting with 2, that are also prime.
|
|
11
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The next term is the 355-digit number 2357111317192329313741434753...677683691701709719 which is too large to include here. See A046035, A046284.
|
|
REFERENCES
|
R. Crandall and C. Pomerance, Prime Numbers: A Computational Perspective, 2nd ed., Springer, NY, 2005; see p. 78. [The 2002 printing states incorrectly that 2357...5441 is prime.]
|
|
LINKS
|
|
|
MATHEMATICA
|
Cases[FromDigits /@ Rest[FoldList[Join, {}, IntegerDigits[Prime[ Range[10^3]]]]], _?PrimeQ] (* Eric W. Weisstein, Oct 30 2015 *)
|
|
PROG
|
(PARI) s=""; for(n=1, 200, s=concat(s, prime(n)); if(ispseudoprime( eval(s)), print1(s", "))) \\ Jens Kruse Andersen, Jun 26 2014
(Python)
from sympy import isprime, nextprime
def afind(terms, verbose=False):
n, p, pstr = 0, 2, "2"
while n < terms:
if isprime(int(pstr)): n += 1; print(n, int(pstr))
p = nextprime(p); pstr += str(p)
|
|
CROSSREFS
|
Cf. A046035 (Numbers n such that the concatenation of the first n primes is prime)
Cf. A046284 (Primes p such that concatenation of primes from 2 through p is a prime).
Cf. A030997 (Smallest prime which is a concatenation of n consecutive primes).
|
|
KEYWORD
|
nonn,bref,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Entry revised Jan 18 2004
|
|
STATUS
|
approved
|
|
|
|