fork download
  1. t=int(input())
  2. def dem(n):
  3. ans=1
  4. gh=int(n**(1/2))
  5. for i in range(2,gh+1):
  6. if n%i==0:
  7. d=0
  8. while n%i==0:
  9. d=d+1
  10. n=n//i
  11. ans=ans*(d+1)
  12. if n!=1:
  13. ans=ans*2
  14. return ans
  15. while t>0:
  16. n=int(input())
  17. res=dem(n)
  18. print(res)
  19. t=t-1
  20.  
Runtime error #stdin #stdout #stderr 0.19s 25872KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
EOFError: EOF when reading a line