Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int nbDiviseurs(int n)
- {
- int n_div = 2;
- for (i=2; i*i<=n; i++)
- {
- if (n % i == 0) n_div += 1 + i!=n/i;
- }
- return n_div;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement