#3233
Find the Count of Numbers Which Are Not Special
expert · 1145 · lc medium +32 · 27.5% accepted · 197 likes · top 5%
Description
You are given positive integers l and r. A number is special if it has exactly 2 proper divisors (all divisors except itself).
Return the count of non-special numbers in [l, r].
Code
1
2
3