Teachers even joked about this exact kind of retardation in programming class.
It was called the gold digger AI:
Mission: A gold digger needs a way to filter out all the profiles of dusties, so she can get to the work on the rich guys.
She asked 2 programmers to write an AI to find her a millionare.
First programmer writes an algorithm analyzing quality of photos, detecting expensive objects in pictures, friends netwoork etc, and it returns a guess. If the program says yes, then there is a 30 percent chance the guy is a millionare.
That's not nothing, but it can be better.
2nd programmer wrote > Return false.
Accuracy of the program? 99.9%