Comments

I just add a variable to find the next value

you can learn modular arithmetic

Owhh, so thats why only have 2 and 5 doesn't have answer, thanks alot

2:2,4,6,8,10,12,... it will not generate '7' digit 5:5,10,15,...

May I know why only that k % 5 == 0 or k % 2 == 0 must don't have answer?