That works. But it's about 40% slower than the A::C version I nicked. 11 seconds instead of 8 for the 601 million 16 from 32:
[17:27:38.79] C:\test\humanGenome>junk 32 16 ^C [17:41:10.28] C:\test\humanGenome>junk 32 16 Iters:601080390 [17:41:17.49] C:\test\humanGenome>junk2 32 16 ^C [17:41:40.82] C:\test\humanGenome>junk2 32 16 Iters:601080390 [17:41:52.30] C:\test\humanGenome>
junk2 is your code adapted to count rather than print.
In reply to Re^4: Odometer pattern iterator (in C).
by BrowserUk
in thread Odometer pattern iterator (in C). (Updated.)
by BrowserUk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |