← All problemsSign in

ALICE AND BORING MATHS

Alice is a school student and one day she is observing the serial numbers of students and finds that if she takes some random serial numbers from the list then all those numbers are divisible by some prime numbers since Alice finds calculations boring and also wants to trouble you so she has asked you to solve the problem for him. You are given N integers a1,a2,....,an. You need to find all the

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