← All problemsSign in

Prime and Fibonacci

Prime and Fibonacci You are given a list of integers in the standard input. You are required to print all the numbers, which are prime numbers and also in the Fibonacci number series. You are required to keep a count of the numbers which are both Prime and Fibonacci. Sample Input 10 12 13 4 5 9 100 12 56 923 9 5 56 1 2 3 3 4 58 95 847 13 13 13 1597 13 Output 2 1 3 2 5 2 13 5 1597

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start