필터 지우기
필터 지우기

How to find prime numbers?

조회 수: 3 (최근 30일)
Grace
Grace 2014년 10월 4일
답변: Dave 2014년 10월 4일
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?

채택된 답변

Dave
Dave 2014년 10월 4일
Hi,
A=primes(50); A(length(primes(25))+1:end)
Dave

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Math에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by