Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Prime-decomposition/Icon/prime-decomposition.icon
Normal file
18
Task/Prime-decomposition/Icon/prime-decomposition.icon
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
procedure main()
|
||||
factors := primedecomp(2^43-1) # a big int
|
||||
end
|
||||
|
||||
procedure primedecomp(n) #: return a list of factors
|
||||
local F,o,x
|
||||
F := []
|
||||
|
||||
every writes(o,n|(x := genfactors(n))) do {
|
||||
\o := "*"
|
||||
/o := "="
|
||||
put(F,x) # build a list of factors to satisfy the task
|
||||
}
|
||||
write()
|
||||
return F
|
||||
end
|
||||
|
||||
link factors
|
||||
Loading…
Add table
Add a link
Reference in a new issue