Pregunta de entrevista de Garmin

A recursion problem with prime numbers