← All problemsSign in

DISTINCT DIVISORS!

Maths is a real pain. Teacher has given homework to Ron.Teacher has asked Ron $Q$ queries. Each query is an Integer. He has been asked to tell if given number has exactly $4$ divisors or not. Ron don't know what the divisors are. So Ron approaches you for the answer! ###Input: First line of input contains $Q$ number of Queries. Next $Q$ lines are Queries. ###Output: Print "yes

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