cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A050805 Inserting any digit between adjacent digits of prime p never yields another prime.

Original entry on oeis.org

439, 853, 1013, 1061, 1109, 1117, 1153, 1187, 1213, 1249, 1259, 1283, 1291, 1301, 1303, 1361, 1427, 1451, 1489, 1511, 1523, 1531, 1583, 1597, 1607, 1657, 1733, 1747, 1753, 1801, 1873, 1879, 1913, 1951, 2069, 2083, 2137, 2243, 2251, 2267, 2293, 2297
Offset: 1

Views

Author

Patrick De Geest, Oct 15 1999

Keywords

Examples

			40309, 41319, 42327, 43339, 44349, 45359, 46369, 47379, 48389, and 49399 are all composite. Thus, 439, being prime, belongs to the sequence.
		

Crossrefs

Programs

  • Haskell
    import Data.List (intersperse)
    a050805 n = a050805_list !! (n-1)
    a050805_list = filter ((all (== 0)) . f) a000040_list where
       f p = map (i $ show p) "0123456789"
       i ps d = a010051' (read $ intersperse d ps :: Integer)
    -- Reinhard Zumkeller, May 07 2013
  • Mathematica
    a[n_]:=Or@@PrimeQ[Table[FromDigits[Riffle[IntegerDigits[n],k]],{k,0,9}]]; Select[Prime[Range[5,350]],a[#]==False&] (* Jayanta Basu, May 30 2013 *)
    Select[Prime[Range[400]],NoneTrue[Table[FromDigits[Riffle[ IntegerDigits[ #],d]],{d,0,9}],PrimeQ]&] (* Harvey P. Dale, Aug 04 2021 *)

Extensions

Offset corrected by Reinhard Zumkeller, May 07 2013

A133321 Inserting any (identical) digit between adjacent digits of an odd semiprime k never yields a prime.

Original entry on oeis.org

15, 25, 35, 55, 65, 85, 95, 115, 121, 143, 145, 155, 185, 187, 205, 215, 235, 253, 265, 295, 299, 305, 335, 341, 355, 365, 393, 395, 411, 415, 437, 445, 451, 473, 485, 505, 515, 535, 545, 565, 583, 635, 655, 671, 679, 685, 695, 717, 745, 755, 781, 785, 815
Offset: 1

Views

Author

Jonathan Vos Post, Oct 18 2007

Keywords

Comments

Odd semiprime analog of A050805. Trivially true for any digit if we substitute "even semiprime" for "odd semiprime." Trivially true for any semiprime which is a multiple of 5 (A001750). The nonmultiples of 5 in this sequence begin 121, 143, 187, 253, 299, 341.

Examples

			121 is in the sequence because 10201, 11211, 12221, 13231, 14241, 15251, 16261, 17271, 18281, 19291 are all composite.
		

Crossrefs

Programs

  • Mathematica
    Select[Select[Range[11,900,2],PrimeOmega[#]==2&],AllTrue[Table[ FromDigits[ Riffle[ IntegerDigits[#],n]],{n,0,9}],CompositeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 07 2018 *)

Extensions

More terms from R. J. Mathar, Oct 22 2007
Showing 1-2 of 2 results.