MATLAB: Write a function whose input is a positive integer n, and whose output is the nth prime number. Then, write a script that calls this function to output the sum of the first n prime numbers and the product of the first n prime numbers. Solution function x=NthPrime(n) sum=0 n=0 if size(x)>2 for x if(isprime(x))<n sumprime=sum(prime(n) productprime=product(prime(n)) end .