359999是质数还是积数快点告诉我!火!

来源:学生作业学帮网 编辑:学帮网 时间:2024/07/04 07:44:47

359999是质数还是积数
快点告诉我!火!

答:359999是合数.理由如下:
359999
=360000-1
=600^2-1
=(600+1)×(600-1)
=601×599
由于359999可以分解为两个大于1的正整数相乘,所以它是个合数.

质数或和数吧可以编程算
for i = 2 to 359999
if 359999 mod i =0 then print "heshu"
if i=359999 then print "zhishu"
next i