Inefficiently solve p126