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.

A053095 Number of primes having exactly the same digits as appear in first n primes.

Original entry on oeis.org

1, 1, 1, 8, 62, 568, 5370, 114546, 2898058, 0, 1119268465, 26053674813
Offset: 1

Views

Author

Enoch Haga, Mar 19 2000

Keywords

Comments

a(n) = 0 if sum of digits is a multiple of three (see A103208). - Ray Chandler, Apr 07 2010

Examples

			a(4) = 8 because the first four prime n, concatenated, are 2+3+5+7 or 2357. There are 8 prime arrangements: 2357, 2753, 3257, 3527, 5237, 5273, 7253, 7523.
		

Crossrefs

Programs

  • Python
    from sympy import isprime, prime
    from sympy.utilities.iterables import multiset_permutations
    def A053095(n):
        return sum(1 for d in multiset_permutations(''.join(str(prime(m+1)) for m in range(n))) if isprime(int(''.join(d)))) # Chai Wah Wu, Mar 17 2019

Extensions

a(7)-a(9) from Ray Chandler, Apr 07 2010
a(10) from Ray Chandler, Apr 08 2010
a(11) from Michael S. Branicky, Mar 17 2025
a(12) from Michael S. Branicky, Apr 07 2025

A053161 Largest prime associated with A053095(n), or zero if no such prime exists.

Original entry on oeis.org

2, 23, 523, 7523, 751321, 75331211, 7753211113, 977533111211, 97753332211111, 0, 997753333211111221, 99777533333211211211, 9977754333332221111111, 997775443333332211121111, 99777754443333332111212111, 0, 999777755544433333332121111121, 0, 9997777766555444333333321211112111
Offset: 1

Views

Author

Enoch Haga, Mar 19 2000

Keywords

Examples

			a(7)=7753211113 because it is the largest prime consisting of the digits 2+3+5+7+11+13+17.
		

Crossrefs

Extensions

Edited and extended by Ray Chandler, Apr 08 2010
a(17)-a(19) from Chai Wah Wu, Mar 17 2019
Showing 1-2 of 2 results.