Another easy prime queries

Problem Name:
Another easy prime queries
Site:HackerEarth
Links:
Tags:
Problem setters: