MindTickle interview question

Sorting serching and prime number