I seem to recall that another mathematician, John Conway, did something a bit like that: perhaps he had set up his computer to force him to do his "Doomsday" algorithm in his head whenever he logged on, or something like that. I can't remember exactly (perhaps I'm going a bit senile).