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
4627 Solvers
197 Solvers
Project Euler: Problem 3, Largest prime factor
399 Solvers
Back to basics 12 - Input Arguments
527 Solvers
711 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!