add prime number algo