If you mean by algorithm "a formula where you put in a prime,
and it returns the next prime", then there is no such formula.
If you had such a formula, you could make a series that
generated all primes, and no such series is known to exist.
Such a formula would also solve the twin prime conjecture.