Wrong return type for some elements in `mf`
A stack-oriented programming language suitable for code golfing
Status: Alpha
Brought to you by:
aditsu
Took me forever to track this down...
The type of all occurrences of the smallest prime factor in the array returned by mf
executed on any composite integer is Integer
instead of Long
.
This causes some strange behavior:
2mf[2]|p " [2] "; 3mf[3]|p " [3] "; 4mf[2]|p " [2 2] "; 6mf[2Z]|p " [2 3 2] "; 9mf[3]|p " [3 3] "; 15mf[Z5]|p " [3 5 3] "; 6mf1=mpp " 1 "; 6mf0=mpp " java.lang.RuntimeException: Integer mp not implemented ";
Ooops, it looks like all the factors except the last one were Integer. And it also affected mF (including the exponents).
Good find!
Fixed now, will release in 0.6.3
Last edit: aditsu 2014-09-02
That was quick. Thanks!