fork download
  1. count = 0
  2. cand = 3
  3. while(count<6):
  4. for num in range(2,cand):
  5. print cand, '%', num
  6. if cand%num==0:
  7. cand=cand+2
  8. else:
  9. count=count+1
  10. cand=cand+2
  11. print count,cand
Success #stdin #stdout 0.03s 6356KB
stdin
Standard input is empty
stdout
3 % 2
1 5
5 % 2
2 7
7 % 3
3 9
9 % 4
4 11
11 % 2
5 13
13 % 3
6 15
15 % 4
7 17
17 % 5
8 19
19 % 6
9 21
21 % 7
23 % 8
10 25
25 % 9
11 27
27 % 10
12 29