login
A088766
a(n) = (A087681(n)-1)/2.
6
5, 6, 8, 11, 12, 17, 18, 23, 26, 32, 33, 36, 38, 47, 51, 53, 66, 71, 72, 78, 86, 92, 93, 102, 108, 116, 117, 122, 128, 131, 137, 138, 143, 171, 176, 186, 197, 201, 207, 212, 213, 218, 227, 236, 242, 246, 248, 257, 281, 296, 303, 306, 312, 318, 323, 326, 333, 366
OFFSET
1,1
COMMENTS
Numbers k such that 2*k + 1 - 6 and 2*k + 1 + 6 are sexy primes. [Jonathan Vos Post, Feb 14 2011]
LINKS
FORMULA
{k such that 2*k + 1 - 6 is in A023201} = {k such that 2*k + 1 + 6 is in A046117}.
EXAMPLE
1002 is in the sequence because 2*1002 + 1 - 6 = 1999 is prime, and 2*1002 + 1 + 6 = 2011 is prime.
MATHEMATICA
Select[Range[3, 1000], PrimeQ[2 # + 5] && PrimeQ[2 # - 7] &] - 1 (* Vincenzo Librandi, May 20 2017 *)
PROG
(Magma) [n-1: n in [3..400] |IsPrime(2*n+5) and IsPrime(2*n-7)]; // Vincenzo Librandi, May 20 2017
KEYWORD
nonn
AUTHOR
Ray Chandler, Oct 26 2003
STATUS
approved