用ASP编程序(100—200之间的素数)!!!!
来源:百度知道 编辑:UC知道 时间:2024/04/28 04:07:41
谢谢拉
<%
for i=100 to 200
isntit=false
for j=2 to i-1
if i mod j=0 then'取余数判断是否能整除
response.write i&"不是素数"
isntit=true
end if
next
if not isntit then
response.write i&"是素数"
end if
next
%>