OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
1489+1488/4 = 1861 and 1489-1488/4 = 1117, which are primes;
2377+2376/4 = 2971 and 2377-2376/4 = 1783, which are primes.
MATHEMATICA
w=4; s=""; For[i=1, i<10^3*2, p=Prime[i]; If[PrimeQ[p-((p-1)/w)]&&PrimeQ[p+((p-1)/w)], (*Print[p, ":", p-((p-1)/w), ", ", p+((p-1)/w)]; *)s=s<>ToString[p]<>", "]; i++ ]; Print[s]
Select[Prime[Range[50000]], PrimeQ[# + (# - 1) / 4]&& PrimeQ[# - (# - 1) / 4] &] (* Vincenzo Librandi, Jun 15 2013 *)
PROG
(Magma) [p: p in PrimesInInterval(5, 40000)| IsPrime((5*p-1) div 4 ) and IsPrime((3*p+1) div 4)]; // Vincenzo Librandi, Jun 15 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 27 2008
STATUS
approved