I want to write a loop to check for prime numbers. So I'm going to check only numbers ending with 1,3,7,9.
So I need a loop that will increment with 2,4,2,2 and again 2,4,2,2...
What king of loop is best, a 'for loop' or a 'while' with switches in it or something else?
Basically I need to increment three times with 2 and then with 4, three times with 2 and then with 4...