Computer Science, asked by chaitanyatammisetti1, 8 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 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 akshatjain18jul2008
0

Answere in above picture

Attachments:
Answered by lakshmipriyanaidu234
0

Answer:

answer in python Programing language

Similar questions