Simple MATLAB program to check wheather the no is prime or not.
There is also a matlab function which check also prime no. But you may ask to develop it . so paractice it
RU-vid Channel: / @mrmjt
LIKE US!!
FACEBOOK PAGE:
/ smartnquickacademy
SUBSCRIBE FOR MORE!!!
matlab tutorials
p = primes(n) returns a row vector containing all the prime numbers less than or equal to n. The data type of p is the same as that of n.
21 авг 2024