For some reason the 'nthprime' function is not recognized, however it works for me in my desktop MATLAB.
@Dima Panna 'nthprime' uses symbolic math toolbox which is not supported in cody
%%%%%%%%%%%%%%%%%%%%%%
Useful Function => primes, isprime
Solution:
https://github.com/AhmedNazir/MatlabCody/blob/master/goldbach2.m
976 Solvers
How to find the position of an element in a vector without using the find function
2481 Solvers
Make one big string out of two smaller strings
1156 Solvers
Make a run-length companion vector
520 Solvers
259 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!