OFFSET
1,3
LINKS
David A. Corneth, Table of n, a(n) for n = 1..700
EXAMPLE
a(4) = 6 because there are 6 partitions of prime(4) = 7 that contain a prime number of primes (including repetitions). These partitions are [5,2], [3,3,1], [3,2,2], [3,2,1,1], [2,2,2,1], [2,2,1,1,1].
MATHEMATICA
nterms=20; Table[Total[Map[If[PrimeQ[Count[#, _?PrimeQ]], 1, 0] &, IntegerPartitions[Prime[n]]]], {n, 1, nterms}]
PROG
(PARI) forprime(p=2, 67, my(m=0); forpart(X=p, my(j=0); for(k=1, #X, if(isprime(X[k]), j++)); if(isprime(j), m++)); print1(m, ", ")) \\ Hugo Pfoertner, May 01 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo Xausa, May 01 2021
STATUS
approved