Prime Factorisation
CodeChefOpen on judge ↗
Shibam is given an assignment by his Maths teacher to find the number of 2-Prime numbers from 1 to N. A 2-Prime number is defined to be a number that has exactly two distint prime divisors. For example, numbers 6, 18, 24 are 2-Prime, while 4, 8, 9, 42 are not. Help Shibam complete his assignment which consists of T questions. Input First line will contain T, number of testcases. Then the testcas
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.
Sign in to chat with the tutor and save your progress.
Sign in to start