how to list first 50 prime number after 229 in 10 x5 matrix

2 ビュー (過去 30 日間)
nassnnf
nassnnf 2020 年 12 月 10 日
コメント済み: Rik 2020 年 12 月 10 日
help me to find this

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2020 年 12 月 10 日
a=primes(1000);
b=a(a>229);
c=reshape(b(1:50),10,5)
  1 件のコメント
Rik
Rik 2020 年 12 月 10 日
I think I've seen this exact homework question earlier this week.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete Math についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by