Mphasis Interview Question

write a program to find prime no between two 1 to 1000?