Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Latest commit

 

History

History

Day-44

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Count the divisors of a number.

Instructions

Count the number of divisors of a positive integer n.

Examples (input --> output)

4 --> 3 (1, 2, 4).

5 --> 2 (1, 5).

12 --> 6 (1, 2, 3, 4, 6, 12).

30 --> 8 (1, 2, 3, 5, 6, 10, 15, 30).

Challenges (0/3 done)

  • getDivisorsCnt(10) should return 4.
  • getDivisorsCnt(11) should return 2.
  • getDivisorsCnt(54) should return 8.
function getDivisorsCnt(num) {
  // code below
}