MATLAB: How to find prime numbers prime number Hi, primes(25) gives me the prime numbers that are less or equal to 25. What if i want to find primes numbers that are greater than 25 but less than 50? Best Answer Hi,A=primes(50); A(length(primes(25))+1:end)Dave Related SolutionsMATLAB: Primes function setdiff(primes(20000),primes(10000)) MATLAB: Extracting positive numbers x=x(x>0);Look for "logical addressing" in documentation... Related QuestionAdding Hexadecimal numbersFrom negative to positiveRetrun largest numbersCheck Positive or Negative Infinity
Best Answer