← All problemsSign in

The PRIME numbers

George's robot has generated a sequence of numbers. George wants to verify if the robot is working properly because all the numbers in the sequence should be prime numbers. Can you help George by developing a simple program to test the same? ###Input: - First line will contain $N$, which is the number of elements in the sequence. - Next, $N$ numbers will be entered one by one. ###Outpu

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