fork download
  1. nines = [7]
  2. for j in range(1,34):
  3. nines.append(nines[j-1] + 3 * 10 ** j )
  4.  
  5. for n in range(1,10):
  6. pos = 0
  7. while True:
  8. if nines[pos] % n == 0:
  9. print( str(n) + " :: " + str(nines[pos]) )
  10. pos += 1
  11. if pos == len(nines):
  12. break
Success #stdin #stdout 0.01s 7204KB
stdin
Standard input is empty
stdout
1 :: 7
1 :: 37
1 :: 337
1 :: 3337
1 :: 33337
1 :: 333337
1 :: 3333337
1 :: 33333337
1 :: 333333337
1 :: 3333333337
1 :: 33333333337
1 :: 333333333337
1 :: 3333333333337
1 :: 33333333333337
1 :: 333333333333337
1 :: 3333333333333337
1 :: 33333333333333337
1 :: 333333333333333337
1 :: 3333333333333333337
1 :: 33333333333333333337
1 :: 333333333333333333337
1 :: 3333333333333333333337
1 :: 33333333333333333333337
1 :: 333333333333333333333337
1 :: 3333333333333333333333337
1 :: 33333333333333333333333337
1 :: 333333333333333333333333337
1 :: 3333333333333333333333333337
1 :: 33333333333333333333333333337
1 :: 333333333333333333333333333337
1 :: 3333333333333333333333333333337
1 :: 33333333333333333333333333333337
1 :: 333333333333333333333333333333337
1 :: 3333333333333333333333333333333337
7 :: 7
7 :: 3333337
7 :: 3333333333337
7 :: 3333333333333333337
7 :: 3333333333333333333333337
7 :: 3333333333333333333333333333337