OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
3^3 +- 4^2 -> (11, 43) (both primes);
167^3 +- 168^2 = 4657463 +- 28224 -> (4629239, 4685687) (both primes).
MATHEMATICA
Select[Range[900], PrimeQ[ #^3-(#+1)^2]&&PrimeQ[ #^3+(#+1)^2]&]
bpQ[n_]:=Module[{a=(n+1)^2}, AllTrue[n^3+{a, -a}, PrimeQ]]; Select[Range[ 2, 2000], bpQ] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Oct 17 2019 *)
PROG
(Magma) [n: n in [2..500] | IsPrime(n^3-(n+1)^2)and IsPrime(n^3 +(n+1)^2)] // 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