NeuroLogica interview question

Write a function that sorts prime number within a given range