Computer Science, asked by paridaritesh322, 5 months ago

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 sianelizat
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