最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
分解质因数(asp 分布递归法)[原创]
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
***start input.asp***
<% thenum= request("num") %>
***end input.asp***
***start prime_number.asp***
<%
IsPrimeNumber = false
thenum = request("num")
if thenum = 2 or thenum = 1 then
IsPrimeNumber = false
else
for i = 2 to thenum -1
if thenum / i = int(thenum / i) then IsPrimeNumber = true: m = i : exit for
next
end if
if IsPrimeNumber = false then %>
<%else%>
<%k = thenum / m%>
<%end if%>
***end prime_number.asp***
算法应用:分布多线程树读取
<% thenum= request("num") %>
<%=thenum%>
***end input.asp***
***start prime_number.asp***
<%
IsPrimeNumber = false
thenum = request("num")
if thenum = 2 or thenum = 1 then
IsPrimeNumber = false
else
for i = 2 to thenum -1
if thenum / i = int(thenum / i) then IsPrimeNumber = true: m = i : exit for
next
end if
if IsPrimeNumber = false then %>
<%else%>
<%k = thenum / m%>
<%end if%>
***end prime_number.asp***
算法应用:分布多线程树读取
相关文章
- ASP实现加法验证码方法 09-16
- ASP错误捕获的几种常规处理方法介绍 09-16
- asp中获取日期为星期几的技巧 09-14
- Asp编码优化参考 09-14
- .Net Core认证系统源码解析 12-26
- SharePoint Server 2019新特性介绍 01-15