10000以内的完全平方数中的质数有几个
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/10 22:03:56
1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676,729,784,
10个再答:分别是1.4.9.16.25.36.49.64.81.100
1491625
#includemain(){inta,b,c;for(a=1;a
x+100=n^2x+268=m^2m^2-n^2=x+268-(x+100)(m-n)(m+n)=168=1X168=2X84=3X56=4X42=6X28=7X24=8X21=12X14m-n=2
,c没有初始化为0,另外a,b,c应该是int类型应该:inta=0,b,c;\x05\x05while(a
0,1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676,729,78
√10000=100因此,有100个完全平方数(不含10000,但包括0)
1124394165256367498649811010011121121441316914196152251625617289183241936120400214412248423529245762
大致思想:longa=1;longb,c;while(a
因为√1000=31.62所以1000以内的完全平方数有31个因为三次根号下1000=10所以1000以内的完全立方数有10个因为六次根号下1000=3.16所以1000以内的完全六次方数有3个100
44²=193645²=2025所以2012以内的平方数为1²,2²,.,44²共44个.
1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676,729,784,
12345678910149162536496481100
1000以内的平方数14162536496481100121144169196225256289324361400441484529576625676729784841900961
0,1,4,9,16,25,
10^2-10011^2-100……99^2-100VB代码:Fori=10To100Text1.Text=Text1.Text&(i*i-100)&vbTabIfiMod10=0ThenText1.
请指明编写语言:PASCAL/C/C++/BASIC
PrivateSubCommand1_Click()Dimi%,k%Fori=1To1000IfInt(Sqr(i))=Sqr(i)ThenPrinti,:k=k+1IfkMod5=4ThenPrin