心理

当前位置 /首页/完美生活/心理/列表

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

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.

TAG标签:区间 ab 素数 计算 语言 #