OFFSET
1,4
COMMENTS
a(n) = 0 if sum of digits is a multiple of three (see A103208). - Ray Chandler, Apr 07 2010
EXAMPLE
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.
PROG
(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
CROSSREFS
KEYWORD
base,nonn,more
AUTHOR
Enoch Haga, Mar 19 2000
EXTENSIONS
a(7)-a(9) from Ray Chandler, Apr 07 2010
a(10) from Ray Chandler, Apr 08 2010
STATUS
approved