Skip to content

Instantly share code, notes, and snippets.

@rbobillot
Created June 28, 2015 13:52
Show Gist options
  • Save rbobillot/7e33ecae965b75b5946a to your computer and use it in GitHub Desktop.
Save rbobillot/7e33ecae965b75b5946a to your computer and use it in GitHub Desktop.
def yolo( x ):
p1 = x * x * x
p2 = x + x * x + x * x * x
if p1 < (1<<x) and (1<<x) < p2 and x != (x-(~(-x))):
print ( (x/(x/2))*(x-(~x)) )
else:
yolo(x + 1)
yolo(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment