The Imitation Game Codebreakers Also Created Brilliant Palindromes


The Bletchley Park codebreakers depicted in the film The Imitation Game (this year’s Oscar winner for Best Adapted Screenplay) worked around the clock to crack the secret of Nazi communications during World War II, but they weren’t all about work. They also used their skills for play.

Mark Saltveit, World Palindrome Champion and editor of The Palindromist Magazine, has spent years researching palindrome history and recently published an article on where he shares his discovery that many well-known palindromes originated from a bit of spirited competition among the cryptanalysts of Bletchley Park.

It started with mathematician J.H.C. Whitehead’s* “Step on no pets,” which was answered by Peter Hilton’s “Sex at noon taxes,” and ended, after many rounds of increasingly heated one-upmanship with “what many consider the best palindrome ever.” No, not the Panama one, amateurs. This one:

Doc, note: I dissent. A fast never prevents a fatness. I diet on cod.

The palindrome first came to light when it was the winner of a 1967 magazine contest. The person who submitted it admitted that he had not composed it himself, but had heard it from someone else who had also not composed it. Saltveit has now traced it back to Peter Hilton, the young mathematician who in the film pleads to use information from their partial decryption to save his brother on a naval convoy that is about to be attacked. (That did not happen in real life. Hilton did not have a brother on a naval convoy.)

It makes sense that those with a talent for uncovering meaning from patterns in strings of symbols would have a knack for creating palindromes. After all, a palindrome is just a meaningful string of symbols constrained by a specific type of pattern. In particular, Hilton’s talent for visualizing two streams of information at once came in handy. He composed the champion palindrome in his head, without writing anything down, over the course of five hours, while lying in bed with his eyes closed.

Read more about Saltveit’s research on the codebreakers’ palindrome contest at

*Corrected: The article originally had Alfred North Whitehead, who was J.H.C.'s uncle.