Skip to content

Instantly share code, notes, and snippets.

@pstoll
Last active November 26, 2015 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pstoll/3e0b56e95558f568e38f to your computer and use it in GitHub Desktop.
Save pstoll/3e0b56e95558f568e38f to your computer and use it in GitHub Desktop.
latest prime-hexagon prime generation with new/better primesieve-python interface
# 10B values using new prime generation interface directly to numpy arrays
# total time - 1m:43sec for the entire calculation.
# prime generation was only 10 sec.
# it all fit in RAM for my 16GB machine.
prime-hexagon pstoll$ python ./primespin.py --nvalues=$(echo 10,000,000,000|tr -d ,) --chunks 10 --skip 1000000
2015-11-18 02:08:34,722 - prime_hex - INFO - starting generating primes from 1 to 10000000000
trying direct numpy prime generation...
2015-11-18 02:08:44,534 - prime_hex - INFO - done generating primes
2015-11-18 02:08:44,534 - prime_hex - INFO - compute_spins: generating mod6Values
2015-11-18 02:09:04,147 - prime_hex - INFO - compute_spins: done mod6Values
2015-11-18 02:09:04,147 - prime_hex - INFO - compute_spins: starting to compute spins
2015-11-18 02:09:19,863 - prime_hex - INFO - compute_spins: done computing spins
2015-11-18 02:09:20,789 - prime_hex - INFO - compute_positions: starting aux calculations
2015-11-18 02:09:31,766 - prime_hex - INFO - compute_positions: done with aux calculations
2015-11-18 02:09:31,766 - prime_hex - INFO - compute_positions: starting primary calculation
2015-11-18 02:09:56,096 - prime_hex - INFO - compute_positions: done with primary calculation
2015-11-18 02:09:56,637 - prime_hex - INFO - compute_rotations: starting aux calculations
2015-11-18 02:10:02,867 - prime_hex - INFO - compute_rotations: done with aux calculations
2015-11-18 02:10:02,867 - prime_hex - INFO - compute_rotations: starting primary calculations
2015-11-18 02:10:16,072 - prime_hex - INFO - compute_rotations: done with primary calculations
2015-11-18 02:10:16,509 - prime_hex - INFO - start save binary arrays compressed to file output-00000000000000000000-00000000010000000000.npz with slice slice(None, None, 1000000)
2015-11-18 02:10:17,162 - prime_hex - INFO - done save binary arrays
@zhargal05450
Copy link

comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment