淳美吧 > 智慧生活 > 心理
导航

c语言计算ab区间所有素数

来源:淳美吧 3.37W 次
c语言计算ab区间所有素数

筛法求[a,b]中的素数。

Find out the prime numbers in [a, b].

输入:

2个正整数:a b。

a、b均在1000以内,且a小于等于b。

2 positive integers: a, b. Both a and b are less than or equal 1000 and a is less than or equal to b.

输出:

[a b]区间内的所有素数,每个单独一行。

All primes in [a, b], each one in a row.

#区间 #素数 #语言 #ab #计算
相关内容
热门图文
最近更新
推荐阅读