Pythagorean triples: Difference between revisions
Content added Content deleted
m (→{{header|Icon}} and {{header|Unicon}}: fix IPL ref) |
m (→{{header|Icon}} and {{header|Unicon}}: performance) |
||
Line 108: | Line 108: | ||
[http://www.cs.arizona.edu/icon/library/src/procs/printf.icn printf.icn provides printf] |
[http://www.cs.arizona.edu/icon/library/src/procs/printf.icn printf.icn provides printf] |
||
The output from some sample runs with BLKSIZE=500000000 and STRSIZE=50000000 is below. It starts getting very slow after 10M at about 9 minutes (times are shown in ms. |
The output from some sample runs with BLKSIZE=500000000 and STRSIZE=50000000 is below. It starts getting very slow after 10M at about 9 minutes (times are shown in ms. I suspect there may be faster gcd algorithms that would speed this up. |
||
Output:<pre> |
Output:<pre> |