Skip to content

Instantly share code, notes, and snippets.

View VHarisop's full-sized avatar
🤒
Out sick

Vasilis Charisopoulos VHarisop

🤒
Out sick
View GitHub Profile
__author__ = 'VHarisop'
''' original idea from mpetyx <github.com/mpetyx>
Generates Hardy-Ramanujan Numbers up to 250000 in under 1 sec.
'''
import sys
rng = int(sys.argv[1])
hrs = [0] * (2 * rng ** 3 + 1)
for x in range(1, rng):