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 ascending
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
0
Answere in above picture
Attachments:
Answered by
0
Answer:
answer in python Programing language
Similar questions
Computer Science,
5 months ago
English,
5 months ago
Computer Science,
10 months ago
Math,
10 months ago
Physics,
1 year ago
Sociology,
1 year ago