Create prime.cpp

calculates prime numbers between 2 and 1000