Tap here to switch tabs
Problem
Submissions

Problem: Four Divisors

med
30 min
Try to solve the Four Divisors problem.

Statement

Given an integer array nums, return the sum of the divisors of all integers in nums that have exactly 44 divisors. If an integer has more or fewer than 44 divisors, do not include its divisors in the sum. If no such integer exists in the array, return 00.

Constraints:

  • 1≤1 \leq nums.length ≤104\leq 10^4

  • 1≤1 \leq nums[i] ≤105\leq 10^5

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Four Divisors

med
30 min
Try to solve the Four Divisors problem.

Statement

Given an integer array nums, return the sum of the divisors of all integers in nums that have exactly 44 divisors. If an integer has more or fewer than 44 divisors, do not include its divisors in the sum. If no such integer exists in the array, return 00.

Constraints:

  • 1≤1 \leq nums.length ≤104\leq 10^4

  • 1≤1 \leq nums[i] ≤105\leq 10^5