Computer Science, asked by chaitanyatammisetti1, 10 months ago

Fibonacci-Prime
Consider the given series: 1,2,1,3,2,5,3,7,5, 11, 8, 13, 13, 17,...
This series is a mixture of 2 series - all the odd terms in this series form a Fibonacci series and all the even terms are the prime numbers in ascendin
order.
Now write a program to find the Nth term in this series.
Input Format:
Take input the value of N from stdin
Output Format:
Print the Nth term according to Series
Example Input:
5
Output:
2
Example Input:
4
Output:
3​

Answers

Answered by NishantRajput8081
0

Answer:

too much longer questions

Similar questions