how would you write a program to check prime numbers between 1022 and 3005

I would greatly appreciate any help.