P59 (brute force version)