OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 32*A101794(n) - 1 = 8*A101795(n) + 7 = 4*A101796(n) + 3 = 2*A101797(n) + 1. - Amiram Eldar, May 13 2024
EXAMPLE
4*45-1 = 179, 8*45-1 = 359, 16*45-1 = 719 and 32*45-1 = 1439 are primes, so 1439 is a term.
MATHEMATICA
32 * Select[Range[10^5], And @@ PrimeQ[2^Range[2, 5]*# - 1] &] - 1 (* Amiram Eldar, May 13 2024 *)
PROG
(PARI) is(k) = if(k % 32 == 31, my(m = k\32 + 1); isprime(4*m-1) && isprime(8*m-1) && isprime(16*m-1) && isprime(32*m-1), 0); \\ Amiram Eldar, May 13 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Douglas Stones (dssto1(AT)student.monash.edu.au), Dec 16 2004
STATUS
approved