Skip to content

Instantly share code, notes, and snippets.

@gmart7t2
gmart7t2 / uniform_palinceptions.py
Created November 1, 2024 02:13
Generate a list of all uniform palinceptions
#!/usr/bin/env python3
# generate all the uniform palinceptions
# it generates some multiple times (111-111-111-111, 1111-1111-1111, and 111111-111111 all look the same without the dashes)
# (111-111-121-111-111 and 11111-11211-11111 too)
# so pipe the output through sort -un
import itertools
min_length = 11; max_length = 16

Keybase proof

I hereby claim:

  • I am gmart7t2 on github.
  • I am greg7t2 (https://keybase.io/greg7t2) on keybase.
  • I have a public key ASAw61M5XIRUOBPizRAB1i6kvAP3QvUgHImknqtlFSdovwo

To claim this, I am signing this object: