completed 'prime factors' challenge