12283是质数吗?

来源:百度知道 编辑:UC知道 时间:2024/05/20 09:04:47

不是,因为71*173=12283

12283不是质数。
质数又叫素数。除了1和它本身的数 其它数都不能整除的数, 叫质数。
合数:一个数的约数除了1和它本身,还有其它的约数,这个数就叫做合数。
很显然,12283=71x173 ,12283=1x12283。12283是合数。

不是的
12283=71*173

使用C++找出来的,呵呵(附程序)
//
#include<iostream>
using namespace std;
int main()
{
int n,i;cout<<"Input the number: "<<endl;
cin>>n;
for(i=2;i<n;i++)
if(n%i==0){
cout<<n<<" is not a prime"<<endl;
cout<<n<<" = "<<i<<" * "<<n/i<<endl;
return 0;
}
cout<<n<<" is a prime "<<endl;
return 0;
}

//输入12283,显示12283 is not a prime
//12283=71*173

不是质数, 12283=71*173
我专门研究质数的:http://hi.baidu.com/ahcao

<