Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while ( a % 2 == 0){
- a = a / 2;
- b++;
- }
- if ( b != 0 ) p = b + 1;
- k = 3;
- while ( a != 1 ){
- b = 0;
- while ( a % k == 0 ){
- a = a / k;
- b++;
- }
- if ( b != 0 ) p = p * ( b + 1);
- k = k + 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement