Solution to Prime_numbers_step