Program to find a number who is a part of fibonacci series and also a prime number
Answers
Answered by
1
Answer:
Given a number, find the numbers (smaller than or equal to n) which are both Fibonacci and prime. Examples: Input : n = 40 Output: 2 3 5 13 Explanation : Here, range(upper limit) = 40 Fibonacci series upto n is, 1, 1, 2, 3, 5, 8, 13, 21, 34. Prime numbers in above series = 2, 3, 5, 13.
Answered by
0
Answer:
refer to the attachment
Attachments:
Similar questions