OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
The divisors of 136 are { 1, 2, 4, 8, 17, 34, 68, 136 }, the sum of its nonprime divisors is 1 + 4 + 8 + 34 + 68 + 136 = 251 is prime, and the sum of its prime divisors is 2 + 17 = 19 is prime, hence 136 is in the sequence.
MATHEMATICA
f[n_]:=Plus@@Select[Divisors[n], !PrimeQ[#]&]; g[n_]:=Plus@@First/@FactorInteger[n]; Select[Range[1000], PrimeQ[f[#]&&PrimeQ[g[#]]]&]
ndpdQ[n_]:=Module[{d=Divisors[n], pr}, pr=Select[d, PrimeQ]; AllTrue[ {Total[ pr], Total[Complement[d, pr]]}, PrimeQ]]; Select[Range[900], ndpdQ] (* Harvey P. Dale, Sep 23 2021 *)
PROG
(PARI) isok(n) = isprime(s=sumdiv(n, d, if (isprime(d), d))) && isprime(sigma(n)-s); \\ Michel Marcus, Jan 07 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Aug 30 2011
STATUS
approved