Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created September 18, 2019 11:06
Show Gist options
  • Save lakshay-arora/ffa678135332a141baa8a02a32d71c84 to your computer and use it in GitHub Desktop.
Save lakshay-arora/ffa678135332a141baa8a02a32d71c84 to your computer and use it in GitHub Desktop.
%%time
pool = mp.Pool(processes = (mp.cpu_count() - 1))
answer = pool.map(countDivisors,random_data)
pool.close()
pool.join()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment