Multi-base primes: Difference between revisions

Content added Content deleted
m (C++ performance improvement)
m (C++ - specify CPU model)
Line 174: Line 174:


{{out}}
{{out}}
Maximum base 36 and maximum length 6. This takes 0.7 seconds to process up to 5 character strings and 29 seconds to process up to 6 characters (3.2GHz Intel Core i5).
Maximum base 36 and maximum length 6. This takes 0.7 seconds to process up to 5 character strings and 29 seconds to process up to 6 characters (3.2GHz Intel Core i5-4570).
<pre>
<pre>
1-character strings which are prime in most bases: 34
1-character strings which are prime in most bases: 34
Line 199: Line 199:
</pre>
</pre>


Maximum base 62 and maximum length 5. This takes 0.25 seconds to process up to 4 character strings and 15 seconds to process up to 5 characters (3.2GHz Intel Core i5).
Maximum base 62 and maximum length 5. This takes 0.25 seconds to process up to 4 character strings and 15 seconds to process up to 5 characters (3.2GHz Intel Core i5-4570).
<pre>
<pre>
1-character strings which are prime in most bases: 60
1-character strings which are prime in most bases: 60