num, k = 1, 1         #Takes forever
while k <= 19:
    print(num)
    print(k)
    if num % k == 0:
        k += 1
    else:
        num += 1
        k = 1
print(num)


##primes, num, i = [2,3,5,7,11,13,17,19], 20, 0

        
        
    
    
