Moved showPrimes code to correct action