login
A384174
Primes p such that the concatenations of p and 123456789 in both orders are prime.
2
409, 653, 881, 1091, 1489, 1913, 1993, 2039, 2729, 3677, 4073, 5039, 5507, 5683, 5849, 7349, 7789, 7907, 8419, 8623, 8689, 9973, 10429, 11057, 11617, 11689, 11821, 12527, 13367, 14033, 15259, 15511, 15629, 16139, 17569, 17881, 17911, 19373, 19577, 21187, 21383, 23197, 23399, 23629, 24043, 24317
OFFSET
1,1
COMMENTS
Primes p such that both concatenations p123456789 and 123456789p are prime.
LINKS
EXAMPLE
a(3) = 881 is a term because 881, 881123456789 and 123456789881 are all prime.
MAPLE
filter:= proc(n) isprime(n) and isprime(n*10^9+123456789) and
isprime(123456789*10^(1+ilog10(n))+n) end proc:
select(filter, [seq(i, i=3..30000, 2)]);
MATHEMATICA
Select[Prime[Range[5000]], PrimeQ[#*10^9 + 123456789] && PrimeQ[123456789*10^IntegerLength[#] + #] &] (* Paolo Xausa, May 23 2025 *)
CROSSREFS
Intersection of A232726 and A232728.
Cf. A384218.
Sequence in context: A385768 A212604 A316934 * A052354 A213079 A260173
KEYWORD
nonn,base
AUTHOR
Robert Israel, May 22 2025
STATUS
approved