fork(3) download
  1. primes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,
  2. 79,83,89,97,101]
  3. for _ in xrange(20):
  4. n = int(raw_input())
  5. px = 1
  6. for p in primes:
  7. if px*p > n: break
  8. px*=p
  9. print px
  10.  
Success #stdin #stdout 0.03s 119552KB
stdin
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
stdout
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6
6