user
Write a code to output the next largest prime number of a given number

Now complete the following instance -
Input: num = 16
Output:
assistant
def nextLargestPrime(num):
    #Increment the number by one
    num += 1

    #Loop until largest prime number is found
    while not isPrime(num):
        num += 1

    #Return the largest prime found
    return num