Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
from functools import reduce
import operator
import math
def prime_factors(n):
i = 2
factors = []
while i * i <= n:

Keybase proof

I hereby claim:

  • I am visadb on github.
  • I am visadb (https://keybase.io/visadb) on keybase.
  • I have a public key whose fingerprint is 7732 7E82 2AC4 7324 B4CC CB6C 63DE 381A 12F9 1959

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am visap on github.
  • I am visap (https://keybase.io/visap) on keybase.
  • I have a public key whose fingerprint is 7732 7E82 2AC4 7324 B4CC CB6C 63DE 381A 12F9 1959

To claim this, I am signing this object: