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.

Previous Showing 11-14 of 14 results.

A048890 Primes that yield a different prime when rotated by 180 degrees.

Original entry on oeis.org

19, 61, 109, 199, 601, 661, 1019, 1061, 1091, 1109, 1181, 1601, 1609, 1669, 1699, 1811, 1901, 1999, 6011, 6091, 6101, 6199, 6619, 6661, 6689, 6691, 6899, 6991, 10061, 10069, 10091, 10691, 10861, 10909, 11069, 11681, 11909, 16001, 16619, 16661
Offset: 1

Views

Author

Keywords

Comments

Also called invertible primes. [Lekraj Beedassy, Jan 03 2009]

Crossrefs

Programs

  • Haskell
    import Data.List (unfoldr)
    a048890 n = a048890_list !! (n-1)
    a048890_list = filter f a000040_list where
       f x = all (`elem` [0,1,6,8,9]) ds && x' /= x && a010051 x' == 1
         where x' = foldl c 0 ds
               c v 6 = 10*v + 9; c v 9 = 10*v + 6; c v d = 10*v + d
               ds = unfoldr d x
               d z = if z == 0 then Nothing else Just $ swap $ divMod z 10
    -- Reinhard Zumkeller, Nov 18 2011
    
  • Mathematica
    lst = {}; fQ[n_] := Block[{allset = {0, 1, 6, 8, 9}, id = IntegerDigits@n}, rid = Reverse[id /. {6 -> 9, 9 -> 6}]; Union@ Join[id, allset] == allset && PrimeQ@ FromDigits@ rid && rid != id]; Do[ If[ PrimeQ@n && fQ@n, AppendTo[lst, n]], {n, 16900}]; lst (* Robert G. Wilson v, Feb 27 2007 *)
  • Python
    from itertools import product
    from sympy import isprime
    A048890_list = []
    for d in product('01689',repeat=6):
        s = ''.join(d)
        p = int(s)
        if p > 0:
            q = int(s[::-1].rstrip('0').translate(''.maketrans('69','96')))
            if p != q and isprime(q) and isprime(p):
                A048890_list.append(p) # Chai Wah Wu, Sep 13 2021

Extensions

Better definition and more terms from Robert G. Wilson v, Feb 27 2007

A030540 Largest n-digit norep emirp.

Original entry on oeis.org

7, 97, 983, 9871, 98731, 987361, 9876023, 98762051, 987653201
Offset: 1

Views

Author

Keywords

Crossrefs

A131593 Number of norep emirps less than 10^n.

Original entry on oeis.org

4, 12, 34, 118, 520, 1738, 5310, 13528, 25332
Offset: 1

Views

Author

Harvey P. Dale, Aug 30 2007

Keywords

Comments

Partial sums of A003684. [From Lekraj Beedassy, Jun 07 2009]

Examples

			There are 12 norep emirps less than 100
		

Crossrefs

A172384 Partial sums of A048895.

Original entry on oeis.org

1061, 2152, 3753, 5654, 15715, 25806, 41807, 60808, 167669, 277560, 446161, 645062, 1751943, 2861824, 4467905, 6273966, 8083057, 9969068, 11858079, 13767160, 24574041, 35383922, 46445733, 57537544, 69147225, 80845916
Offset: 1

Views

Author

Jonathan Vos Post, Feb 01 2010

Keywords

Comments

None of these partial sums of "bemirps: primes that yield a different prime when turned upside down with reversals of both being two more different primes" is itself prime. So what is the first (nontrivial) prime partial sum of bemirps? Of emirps? Of "norep emirps": primes with distinct digits which remain prime when reversed? Of emirpimes? I suspect that G. L. Honaker, Jr. would be delighted to have any of these.

Examples

			a(26) = 1061 + 1091 + 1601 + 1901 + 10061 + 10091 + 16001 + 19001 + 106861 + 109891 + 168601 + 198901 + 1106881 + 1109881 + 1606081 + 1806061 + 1809091 + 1886011 + 1889011 + 1909081 + 10806881 + 10809881 + 11061811 + 11091811 + 11609681 + 11698691.
		

Crossrefs

Previous Showing 11-14 of 14 results.