Switched the regular programme to brute force for comparison