def next_prime(number: int) -> int:
    """Return the next prime number after the specified number."""
    while True:
        number += 1
        for num in range(2, number):
            if number % num == 0 and num != number:
                break
        else:
            return number