Find largest left truncatable prime in a given base: Difference between revisions
Find largest left truncatable prime in a given base (view source)
Revision as of 11:08, 9 April 2017
, 7 years ago→{{header|Fortran}}: Using a big base for arithmetic.
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: fix some white space issues) |
m (→{{header|Fortran}}: Using a big base for arithmetic.) |
||
Line 575:
</pre>
So, once again, it is plain that using a large BIGBASE is beneficial
Going further will require MANY to be enlarged. Already, base twelve required just over nineteen thousand entries, and base eighteen overflowed MANY = 66666. This suggests that a lot of data is being shifted about, so some sort of linked-list scheme might reduce that. Incidentally, in <code>B.LAST = A.LAST; B.DIGIT(1:N) = A.DIGIT(1:N)</code> and similar, because the storage for .DIGIT immediately follows that for .LAST, one might hope that an advanced compiler would combine the two statements into one sequential copy... Alas, the Compaq F90/95 compiler produces two wads of code, of 20 operations and then 92. Bounds checking is active, but still...
|