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-1 of 1 results.

A246801 Primes of the form: concatenation n with n-th composite integer.

Original entry on oeis.org

4057, 4463, 4969, 5881, 6691, 86117, 90121, 129169, 131171, 136177, 160207, 162209, 169217, 193247, 225287, 252319, 265333, 272341, 280351, 288361, 297371, 327407, 346429, 355441, 388481, 410507, 429529, 451553, 456559, 474581
Offset: 1

Views

Author

Jahangeer Kholdi, Sep 15 2014

Keywords

Examples

			4057 is in the sequence since 40th composite integer is 57 and 4057 is prime.
		

Crossrefs

Programs

  • Mathematica
    w = Select[Range[2, 800], ! PrimeQ[#] &]; Select[
    Table[FromDigits[Flatten[{IntegerDigits[n], IntegerDigits[w[[n]]]}]], {n, 480}], PrimeQ]
  • Python
    import sympy
    from sympy import isprime
    c = 0
    for n in range(2,10**5):
      if not isprime(n):
        c += 1
        p = int(str(c)+str(n))
        if isprime(p):
          print(p,end=', ')
    # Derek Orr, Sep 18 2014
Showing 1-1 of 1 results.