OFFSET
1,2
COMMENTS
EXAMPLE
Number 8 is in sequence because sigma(8)+8 = 15+8 = 23 (prime).
MAPLE
select(n -> not isprime(n) and isprime(n + numtheory:-sigma(n)), [$1..1000]); # Robert Israel, Nov 13 2014
MATHEMATICA
Select[Range[500], PrimeQ[DivisorSigma[1, #] + #]&& !PrimeQ[#] &] (* Vincenzo Librandi, Nov 14 2014 *)
PROG
(Magma) [n: n in[1..10000] | IsPrime(SumOfDivisors(n)+ n) and not IsPrime(n) ]
(PARI) print1(1, ", "); forcomposite(n=1, 1000, if(isprime(sigma(n)+n), print1(n, ", "))) \\ Derek Orr, Nov 13 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jaroslav Krizek, Nov 13 2014
STATUS
approved