OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Lucas Number
Eric Weisstein's World of Mathematics, Mersenne Number
EXAMPLE
239 is in the sequence since it is prime and 479 is a prime factor of both Lucas(239) and Mersenne(239) = 2^239 - 1.
PROG
(Magma) [p: p in PrimesUpTo(6500) | Gcd(Lucas(p), 2^p-1) gt 1];
(PARI) for(p=2, 6373, if(isprime(p)&&gcd(fibonacci(p-1)+fibonacci(p+1), 2^p-1)>1, print1(p, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, Mar 21 2014
STATUS
approved