Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solution(N) {
- var count = 0;
- for(var i = 1; i * i <N; i++)
- {
- if(N % i === 0)
- {
- count++;
- count++;
- }
- }
- if(N === i* i)
- {
- count++;
- }
- return count ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement