OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
sigma(20) + 1 = 43 and sigma(20) - 1 = 41, so 20 is a term of the sequence.
MATHEMATICA
Select[Range[10^3], PrimeQ[DivisorSigma[1, # ] + 1] && PrimeQ[DivisorSigma[1, # ] - 1] &]
Select[Range[300], AllTrue[DivisorSigma[1, #]+{1, -1}, PrimeQ]&] (* Harvey P. Dale, Apr 06 2023 *)
PROG
(PARI) isok(n) = my(p=sigma(n)-1); isprime(p) && isprime(p+2); \\ Michel Marcus, Sep 30 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joseph L. Pe, Jul 10 2002
EXTENSIONS
More terms from Amiram Eldar, Sep 30 2019
STATUS
approved