first matlab looks of this number can be subdiveded by any numbers from 2 to your number. after that, it will say if it is a primenumber or not, and by which the number could be subdivided (not a quotiënt )
TG (2021). primenumber (https://www.mathworks.com/matlabcentral/fileexchange/61863-primenumber), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Why not just use the MATLAB function ISPRIME ?