Tap here to switch tabs
Problem
Submissions

Problem: Find the Count of Numbers Which Are Not Special

Try to solve the Find the Count of Numbers Which Are Not Special problem.

Statement

You are given two positive integers l and r.

A positive integer is considered special if it has exactly 22 proper divisors.

Return the count of numbers in the range [[l, r]] that are not special.

Note: A proper divisor of a number is any positive divisor of that number other than the number itself.

Constraints:

  • 1≤1 \leq l ≤\leq r ≤109\leq 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Find the Count of Numbers Which Are Not Special

Try to solve the Find the Count of Numbers Which Are Not Special problem.

Statement

You are given two positive integers l and r.

A positive integer is considered special if it has exactly 22 proper divisors.

Return the count of numbers in the range [[l, r]] that are not special.

Note: A proper divisor of a number is any positive divisor of that number other than the number itself.

Constraints:

  • 1≤1 \leq l ≤\leq r ≤109\leq 10^9