write a program to create an array to store 20 random numbers. then separate all fiboprime numbers to another array.display the numbers from the second array in ascending order
Answers
Answered by
0
Answer:
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.
Input : n = 100
Output: 2 3 5 13 89
Explanation :
Here, range(upper limit) = 40
Fibonacci series upto n are 1, 1, 2,
3, 5, 8, 13, 21, 34, 55, 89.
Prime numbers in Fibonacci upto n : 2, 3,
5, 13, 89.
Explanation:
Similar questions
Chemistry,
3 months ago
Environmental Sciences,
3 months ago
Math,
3 months ago
Accountancy,
7 months ago
English,
7 months ago
Geography,
1 year ago