Write a MATLAB script to find the sum of all prime numbers between 1 and 500

조회 수: 5(최근 30일)
Write a MATLAB script to find the sum of all prime numbers between 1 and 500

답변(1개)

David Hill
David Hill 2022년 8월 14일
sum(primes(500))

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by