login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A053095 Number of primes having exactly the same digits as appear in first n primes. 3

%I #14 Nov 25 2021 08:48:52

%S 1,1,1,8,62,568,5370,114546,2898058,0

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

%C a(n) = 0 if sum of digits is a multiple of three (see A103208). - _Ray Chandler_, Apr 07 2010

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

%o (Python)

%o from sympy import isprime, prime

%o from sympy.utilities.iterables import multiset_permutations

%o def A053095(n):

%o 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

%Y Cf. A054260, A053160, A053161, A103208.

%K base,nonn,more

%O 1,4

%A _Enoch Haga_, Mar 19 2000

%E a(7)-a(9) from _Ray Chandler_, Apr 07 2010

%E a(10) from _Ray Chandler_, Apr 08 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 3 04:24 EDT 2024. Contains 372205 sequences. (Running on oeis4.)