There is such a formula, it is very simple
n^2+n+41
It doesn't generate sequential primes.That doesn't really matter, checking if a number is prime can be done in sublinear time complexity. The real problem is factoring large numbers.