OFFSET
1,1
COMMENTS
Same as A005478 except that F(4) = 3 has been omitted.
Sequence of primes in A001519. [James R. Buddenhagen, May 20 2010]
LINKS
T. D. Noe, Table of n, a(n) for n = 1..20
EXAMPLE
5 is a prime and fibonacci(5)=5 is also a prime, 7 is a prime and fibonacci(7)=13 is also a prime, but 2 is a prime and fibonacci(2)=1 is not a prime.
MAPLE
with(combinat, fibonacci): fib_supM_pra := proc(n); if (isprime(n)='true') then if (isprime(fibonacci(n))='true') then RETURN(fibonacci(n)); fi; fi; end: seq(fib_supM_pra(i), i=1..500);
MATHEMATICA
Fibonacci[ Prime[ Select[ Range[50], PrimeQ[ Fibonacci[ Prime[ # ]]] & ]]]
Module[{nn=500, fibs}, fibs=Fibonacci[Range[nn]]; Select[Pick[fibs, Table[ If[ PrimeQ[n], 1, 0], {n, nn}], 1], PrimeQ]] (* Harvey P. Dale, Sep 13 2018 *)
PROG
(PARI) forprime(p=2, 1e3, if(isprime(t=fibonacci(p)), print1(t", "))) \\ Charles R Greathouse IV, Feb 03 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Jani Melik, Oct 07 2002
STATUS
approved