Create p7.cpp

Note: the prime numbers larger than 3 can be easily represented by 6*k +/- 1