Lucky Numbers Again
CodeChefOpen on judge ↗
A lucky number N is defined as a number which has only two factors, both of them distinct and prime and the absolute difference between the two factors is not more than 50. Given two integers, a and b, find the total lucky numbers in the range a to b (inclusive). Input 1.The first input will be T, the number of test-cases. T Output For every test case, print the number of lucky numbers from a t
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