Odd Divisor
A number is called unique if its number of divisors is odd. For example, 14 has 4 divisors(even divisor): 1, 2, 7, 14.
InputYou are given 2 numbers: A and B.
1<=A<=B<=10^9
1<=A<=B<=10^9
OutputDetermine the sum of numbers from A to B which has odd divisor.
Input:
Output:
2300 2410Output:
4705Explanation:
The number which has odd divisor from 2300 to 2410 are 2304 and 2401.
The answer is: 2304+2401= 4705.
Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.