primes(n) returns a row vector with all prime numbers less than or equal to n. The data type of p is identical to that of n.
TF = isprime(X) returns the same size logical array as X. When X(i) is a prime number, the value at TF(i) is true. The value is false otherwise.
Create a function called p = isPrime(n) that returns 1 if n is a prime number and 0 otherwise. Create a function v = primeList(n) that returns a list of prime numbers less than or equal to n.
Learner's Ratings
4.7
Overall Rating
83%
11%
3%
0%
3%
Reviews
S
Shivayogi Alligidad
5
Nice teaching. ease to understand
B
Bibash Adhikari
5
Please make several other courses like AutoCAD Electrical free to learn so that many people can afford to learn for free. Really loved your effort of teaching to us.
Y
Yogesh Narayanrao Zade
5
I really like the Teacher and his teaching style... overall its a best course 👍
Nikita Ravindra Dhuppe
4
It's nice
U
uttam kumar
5
I really appreciate the way of teaching of sir......really a very very knowledgeable session for us.
Share a personalized message with your friends.