alternate prime? solution