OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
MAPLE
N:= 10^4: # to get all terms n such that prime(n+1) <= N
Primes:= select(isprime, [2, seq(2*i+1, i=1..floor(N/2))]):
PP:= Primes[1..-2]+Primes[2..-1]:
select(t -> isprime(PP[t]-1), [$1..nops(PP)]); # Robert Israel, Dec 11 2014
MATHEMATICA
Select[Range[200], PrimeQ[Prime[#]+Prime[#+1]-1] &] (* Harvey P. Dale, Dec 16 2010 *)
PROG
(Magma) [n: n in [1..200] | IsPrime(NthPrime(n) + NthPrime(n+1)-1)] // Vincenzo Librandi, Aug 26 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Herman H. Rosenfeld (herm3(AT)pacbell.net), Aug 12 2002
EXTENSIONS
Definition clarified by Robert Israel, Dec 11 2014
STATUS
approved