Prime number calculation programs