Algorithm print all prime numbers between two given integers