Amazon Lab126 interview question

Find intermediate prime numbers