File Exchange

image thumbnail


version (642 Bytes) by TG
you can say a number to matlab and you see if this is a primenumber of by which it can be subdivided


Updated 03 Mar 2017

View License

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 )

Cite As

TG (2021). primenumber (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Stephen Cobeldick

Why not just use the MATLAB function ISPRIME ?

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!