University stuff.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

output.txt 1.6KB

12345678910111213141516171819202122232425262728293031323334353637
  1. elli ~/tmp $ java Main 2000000000
  2. Max prime: 2000000000
  3. Finding primes sequentially...
  4. Sequential: 9.83s
  5. Finding primes in parallel...
  6. Parallel: 6.92s (1.42x speedup)
  7. Factoring sequentially...
  8. 4000000000000000000 = 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5
  9. 3999999999999999999 = 3 * 31 * 64516129 * 666666667
  10. 3999999999999999998 = 2 * 432809599 * 4620969601
  11. 3999999999999999997 = 421 * 9501187648456057
  12. 3999999999999999996 = 2 * 2 * 3 * 3 * 3 * 3 * 7 * 11 * 13 * 19 * 37 * 52579 * 333667
  13. .............
  14. 3999999999999999904 = 2 * 2 * 2 * 2 * 2 * 1061 * 117813383600377
  15. 3999999999999999903 = 3 * 101 * 241 * 54777261958561
  16. 3999999999999999902 = 2 * 49965473 * 40027640687
  17. 3999999999999999901 = 19 * 2897 * 72670457642207
  18. 3999999999999999900 = 2 * 2 * 3 * 5 * 5 * 89 * 1447 * 1553 * 66666667
  19. Sequential: 1176.19s
  20. Factoring in parallel...
  21. 4000000000000000000 = 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5
  22. 3999999999999999999 = 3 * 31 * 64516129 * 666666667
  23. 3999999999999999998 = 2 * 432809599 * 4620969601
  24. 3999999999999999997 = 421 * 9501187648456057
  25. 3999999999999999996 = 2 * 2 * 3 * 3 * 3 * 3 * 7 * 11 * 13 * 19 * 37 * 52579 * 333667
  26. .............
  27. 3999999999999999904 = 2 * 2 * 2 * 2 * 2 * 1061 * 117813383600377
  28. 3999999999999999903 = 3 * 101 * 241 * 54777261958561
  29. 3999999999999999902 = 2 * 49965473 * 40027640687
  30. 3999999999999999901 = 19 * 2897 * 72670457642207
  31. 3999999999999999900 = 2 * 2 * 3 * 5 * 5 * 89 * 1447 * 1553 * 66666667
  32. Parallel: 356.50s (3.30x speedup)