Print all the prime numbers

why the code use no%i instead of i%no ?