Skip to content

Instantly share code, notes, and snippets.

@higgsmass
Created October 8, 2020 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save higgsmass/376d9b5e64e533128f687da7e9ed40fc to your computer and use it in GitHub Desktop.
Save higgsmass/376d9b5e64e533128f687da7e9ed40fc to your computer and use it in GitHub Desktop.
Generate and test for properties
def solve():
pals = gen2()
for P in pals:
p = int(math.sqrt(P))
if p*(p+1) == P:
Q = (p+22)*(p+23)
if Q in pals:
print (p, P, p+22, Q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment