add prime aglorithm