OFFSET
1,2
LINKS
FORMULA
EXAMPLE
181 is in the sequence because the 181st prime is 1087, and 1086 is divisible by 181 (although 1088 is not so divisible).
MATHEMATICA
ndpQ[n_]:=Module[{p=Prime[n]}, Divisible[p-1, n]||Divisible[p+1, n]]; Select[Range[100000], ndpQ] (* Harvey P. Dale, Apr 03 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jan 12 2003
EXTENSIONS
Corrected and example added by Harvey P. Dale, Apr 03 2011
STATUS
approved