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.6
Overall Rating
83%
8%
5%
0%
4%
Reviews
M
Mishra Aaradhana
5
Amazing.. thank you so much for such a valuable content for free....i am feeling very confident after completion of this course very helpful begginer friendly
A
Abdul Majed
5
It was a nice experience for me with learnvern.
M
Mahesh Yede
5
-
S
Sahil Kumar Agrawal
5
Amazing introduction, Sir taught very well I like it
D
Dipak kumar
5
Amazing course for Beginners students
S
Subodh Sunil Bodhe
5
nice
N
NIKHIL PHULWARI
5
H
Habib Ullah
5
its a great job. i like it. thanks so much for this course.
Share a personalized message with your friends.