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

為邇傾亾城 1个月前 已收到1个回答 举报

蓦然抬眸殇 3星

共回答了362个问题采纳率:94.5% 评论

筛法求[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.

7小时前

38
可能相似的问题

猜你喜欢的问题

热门问题推荐

Copyright © 2024 微短问答 All rights reserved. 粤ICP备2021119249号 站务邮箱 service@wdace.com