This is the same trick Mister Spock used to overwhelm the possessed computer in Star Trek. Other useful wishes are “define this emotion that humans call ‘love’”,  “create a rock so heavy genies can’t lift it.”