fork(3) download
  1. i=p=q=0;n=int(input())
  2. while q<n:
  3. c=j=0;i+=1
  4. while j<i:j+=1;c+=i%j==0
  5. if c>p:p=c;q+=1
  6. print(i)
Success #stdin #stdout 1.84s 9984KB
stdin
18
stdout
2520