add improved funtion to find prime number
Slove problem 10. it take almost 30m...