login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A050180
Numbers m such that prime(m) + Fibonacci(m) is prime.
3
1, 3, 12, 24, 42, 60, 132, 303, 312, 450, 564, 1236, 1419, 2952, 10098, 12060, 13848, 17229, 22356, 37896, 251904
OFFSET
1,2
COMMENTS
a(22) > 256737. - J.W.L. (Jan) Eerland, Jun 22 2022
MATHEMATICA
Do[ If[ PrimeQ[ Prime[n] + Fibonacci[n]], Print[n] ], {n, 1, 150000} ]
Select[Range[10000], PrimeQ[Fibonacci[#] + Prime[#]] &] (* Vincenzo Librandi, Jul 29 2016 *)
DeleteCases[ParallelTable[If[PrimeQ[Prime[n]+Fibonacci[n]], n, a], {n, 0, 256737}], a] (* J.W.L. (Jan) Eerland, Jun 22 2022 *)
PROG
(PARI) for(n=1, 10^5, if(isprime(prime(n)+fibonacci(n)), print1(n, " ")))
(Magma) [n: n in [1..2000] | IsPrime(NthPrime(n)+Fibonacci(n))]; // Vincenzo Librandi, Jul 29 2016
CROSSREFS
Sequence in context: A030571 A297675 A112236 * A319422 A272173 A028725
KEYWORD
nonn,more,hard
AUTHOR
Jason Earls, Oct 06 2001
EXTENSIONS
More terms from Robert G. Wilson v, Oct 08 2001
a(18)-a(19) from Vincenzo Librandi, Apr 10 2020
a(20) from J.W.L. (Jan) Eerland, Dec 23 2021
a(21) from J.W.L. (Jan) Eerland, Jun 22 2022
STATUS
approved