Skip to content

Instantly share code, notes, and snippets.

@mmourafiq
Created August 27, 2012 19:22
Show Gist options
  • Save mmourafiq/3491510 to your computer and use it in GitHub Desktop.
Save mmourafiq/3491510 to your computer and use it in GitHub Desktop.
multiplicities of prime factors less than x for x!^2
def nbr_factors_sqr(x):
nbr = 1
for f in get_primes_multiplicities(x).values():
nbr *= (2*f + 1)
return nbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment