Skip to content

Instantly share code, notes, and snippets.

View nachonavarro's full-sized avatar

Nacho Navarro nachonavarro

  • J.P. Morgan AI Research
  • Madrid
View GitHub Profile
@nachonavarro
nachonavarro / simple_server.py
Created November 21, 2019 18:34
A simple server in Python
"""
An extremely simple server.
Use Python 3.
"""
import socket
from textwrap import dedent
class MySimpleServer:
@nachonavarro
nachonavarro / lists.py
Last active August 27, 2017 19:44
Test lists to see potential-divisibility
A = [ 1, 839475, 3710479500, 68501160000, 73354444800, 87326720000, 305154490368000, 54800928000, 10686180960000,
227971860480000, 284964825600000, 3419577907200000, 838656, 838656, 838656, 838656, 3667722240, 3667722240,
3667722240, 3667722240, 44012666880, 44012666880, 44012666880, 44012666880, 44012666880, 44012666880,
57555025920, 57555025920, 11971445391360, 11971445391360, 11971445391360, 11971445391360, 11971445391360,
11971445391360, 11971445391360, 11971445391360, 11971445391360, 11971445391360, 11971445391360, 11971445391360,
143657344696320, 143657344696320, 143657344696320, 143657344696320, 207505053450240, 207505053450240,
2490060641402880, 2490060641402880, 2490060641402880, 2490060641402880, 2490060641402880, 2490060641402880,
29880727696834560, 243169984512000, 4577317355520000, 4863399690240000, 6079249612800000, 77814395043840000,
1167215925657600000, 1368165187584000000, 54713246515200000, 1094264930304000000, 1368165187584000000,
43840742400, 43840742400, 43840742400, 43840742400,