找素数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
找出 以内的素数(质数)。
除了 和它本身以外,不再有别的约数,这种整数叫做质数或素数。最小的质数是 。
输出格式
输出所有符合条件的素数,每行输出 个素数,每个素数之间空格。
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
找出 1000 以内的素数(质数)。
除了 1 和它本身以外,不再有别的约数,这种整数叫做质数或素数。最小的质数是 2。
输出所有符合条件的素数,每行输出 10 个素数,每个素数之间空格。
By signing up a CZOJ universal account, you can submit code and join discussions in all online judging services provided by us.