A069488 Primes > 100 in which every substring of length 2 is also prime.
113, 131, 137, 173, 179, 197, 311, 313, 317, 373, 379, 419, 431, 479, 613, 617, 619, 673, 719, 797, 971, 1117, 1171, 1319, 1373, 1973, 1979, 2311, 2371, 2971, 3119, 3137, 3719, 3797, 4111, 4373, 6113, 6131, 6173, 6197, 6719, 6737
Offset: 1
Examples
3719 is a term as the three substrings of length 2, i.e., 37, 71 and 19, are all prime.
Links
- Robert G. Wilson v, Table of n, a(n) for n = 1..10101 (first 1000 terms from Reinhard Zumkeller)
Programs
-
Haskell
a069488 n = a069488_list !! (n-1) a069488_list = filter f $ dropWhile (<= 100) a038618_list where f x = x < 10 || a010051 (x `mod` 100) == 1 && f (x `div` 10) -- Reinhard Zumkeller, Apr 07 2014
-
Mathematica
Do[ If[ Union[ PrimeQ[ Map[ FromDigits, Partition[ IntegerDigits[ Prime[n]], 2, 1]]]] == {True}, Print[ Prime[n]]], {n, PrimePi[100] + 1, 500}]
Extensions
Edited, corrected and extended by Robert G. Wilson v, Apr 12 2002
Comments