最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
分解质因数(asp 分布递归法)[原创]
时间:2022-07-02 23:53:52 编辑:袖梨 来源:一聚教程网
***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***
算法应用:分布多线程树读取
相关文章
- 《剑啸江湖》体力使用途径有哪些 06-16
- 安全可靠币圈十大全球交易所数字资产APP前十-去中心化比特币交易app币安推荐 06-16
- SNORT币如何安全存储-2025币安交易所存储教程 06-16
- 《无期迷途》枷锁作用怎么样 06-16
- BALL币如何安全存储-2025币安交易所存储教程 06-16
- 《零之战线》防御型角色强度如何培养 06-16