In case you want to see a program which outputs first 1000 prime numbers (using prime test function) -- here is an example: ...