Accenture Interview Question

one program like prime no between a range