Console based program to display the first one thousand prime numbers.