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!)
A232726 Primes p such that the concatenation 123456789p is prime. 2
23, 29, 167, 191, 199, 257, 311, 409, 419, 433, 457, 563, 587, 601, 653, 761, 769, 809, 881, 947, 1013, 1069, 1091, 1153, 1163, 1187, 1223, 1259, 1283, 1307, 1433, 1489, 1511, 1723, 1787, 1789, 1913, 1993, 2039, 2137 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Primes in A232725.
LINKS
EXAMPLE
1163 is in this sequence because 1163 and 1234567891163 are prime.
MATHEMATICA
Select[Prime[Range[500]], PrimeQ[FromDigits[Join[Range[9], IntegerDigits[ #]]]]&] (* Harvey P. Dale, Nov 26 2014 *)
PROG
(Python)
from sympy import isprime
for n in range(5000):
if isprime(n) and isprime(int("123456789" + str(n))):
print(n, end=', ') # simplified by Derek Orr, Nov 27 2014
(PARI) forprime(p=1, 5000, if(isprime(eval(concat("123456789", Str(p)))), print1(p, ", "))) \\ Derek Orr, Nov 27 2014
CROSSREFS
Sequence in context: A180538 A227217 A229176 * A029541 A068714 A344127
KEYWORD
nonn,base,less
AUTHOR
Derek Orr, Nov 29 2013
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 14:35 EDT 2024. Contains 371989 sequences. (Running on oeis4.)