Questions about or involving outside the range of normal machine precision, using Mathematica's capacity for arbitrary precision numbers and numbers outside the normal range of floating-point arithmetic.
25
votes
2answers
3k views
What is so special about Prime?
When we try to evaluate Prime on big numbers (e.g. 10^13) we encounter the following issue :
...
4
votes
2answers
328 views
What is the most efficient way to add zeros to end of a number?
Beside *10^n, is there a faster way to add thousands of zeros to end of a number?
Updated
Timings:
...
3
votes
2answers
309 views
Fast Trial Division
I'm going to write a custom Trial Division primality test. I know that PrimeQ will first try trial division and then switches to ...