+ generate random prime function.