Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d=(a)=>
- {
- s=0
- for(l=1;l<=a;l++)
- if(a%l==0)s++
- return s
- }
- N = readline()
- max = 0
- u = 1
- for(i=1;i<=N;i++)
- {
- if(d(i)>max)
- {
- max=d(i)
- u=i
- }
- }
- print(u,max)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement