Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding "perfect" numbers
#2
Function find_perfect_numbers
Code:
Copy      Help
int N D T F
F=0
N=26
D=1
T=0
;Start
if F=1
,end

if D%N=0 ;; this seems to be setting D to whatever N is???
,T+D;;out D

if D=N
,F=1
,if N=T
,,out "yes"
,else
,,out "no"

out 1
D+1
goto Start


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)