It's already very fast, but you can improve it somewhat by doing your rotations with
$num = chop($num) . $num; Rate s chop s 258/s -- -14% chop 299/s 16% --
the lowliest monk
In reply to Re^4: Rotationally Prime Numbers Revisited
by tlm
in thread Rotationally Prime Numbers Revisited
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |