OFFSET
1,1
EXAMPLE
7^3 +- 6 -> (337, 349) (both prime);
139^3 +- 138 -> (2685481, 2685757) (both prime).
MATHEMATICA
Select[Range[999], PrimeQ[ #^3-(#-1)]&&PrimeQ[ #^3+(#-1)]&]
PROG
(Magma) [n: n in [0..500] | IsPrime(n^3-(n-1))and IsPrime(n^3 +(n-1))] // Vincenzo Librandi, Nov 24 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 21 2008
EXTENSIONS
More terms from Vincenzo Librandi, Mar 26 2010
STATUS
approved