Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Difference between revisions of "Template:Reuse Primelist"
(new) |
(corr.) |
||
Line 11: | Line 11: | ||
For Riesel primes of the form {{Kbn|3|n}} | For Riesel primes of the form {{Kbn|3|n}} | ||
− | :{{NVal list|{{GP|Riesel prime 3|RNlist}}|short}} | + | :{{NVal list|{{GP|Riesel prime 2 3|RNlist}}|short}} |
and setting 'divider' = 2 results in: | and setting 'divider' = 2 results in: | ||
− | :{{Reuse Primelist|Riesel prime 3|RNlist|2}} | + | :{{Reuse Primelist|Riesel prime 2 3|RNlist|2}} |
which are the primes of the form {{Kbn|3|4|n}} by calling | which are the primes of the form {{Kbn|3|4|n}} by calling | ||
<pre> | <pre> | ||
− | {{Reuse Primelist|Riesel prime 3|RNlist|2}} | + | {{Reuse Primelist|Riesel prime 2 3|RNlist|2}} |
</pre> | </pre> | ||
[[Category:Prime collections]]</noinclude><includeonly>{{#arraydefine:A|{{GP|{{{1}}}|{{{2}}}}}|/\n/}}{{#sub:{{#loop: i | [[Category:Prime collections]]</noinclude><includeonly>{{#arraydefine:A|{{GP|{{{1}}}|{{{2}}}}}|/\n/}}{{#sub:{{#loop: i |
Revision as of 08:57, 25 March 2024
Purpose
Prints members of primes of another given prime list for a different base.
Calling
{{Reuse Primelist|<prime numbers>|<list>|<divider>}}
Example
For Riesel primes of the form 3•2n-1
- 1, 2, 3, 4, 6, 7, 11, 18, 34, 38, 43, 55, 64, 76, 94, 103, 143, 206, 216, 306, 324, 391, 458, 470, 827, 1274, 3276, 4204, 5134, 7559, 12676, 14898, 18123, 18819, 25690, 26459, 41628, 51387, 71783, 80330, 85687, 88171, 97063, 123630, 155930, 164987, 234760, 414840, 584995, 702038, 727699, 992700, 1201046, 1232255, 2312734, 3136255, 4235414, 6090515, 11484018, 11731850, 11895718, 16819291, 17748034, 18196595, 18924988, 20928756, 22103376
and setting 'divider' = 2 results in:
- 1, 2, 3, 9, 17, 19, 32, 38, 47, 103, 108, 153, 162, 229, 235, 637, 1638, 2102, 2567, 6338, 7449, 12845, 20814, 40165, 61815, 77965, 117380, 207420, 351019, 496350, 600523, 1156367, 2117707, 5742009, 5865925, 5947859, 8874017, 9462494, 10464378, 11051688
which are the primes of the form 3•4n-1 by calling
{{Reuse Primelist|Riesel prime 2 3|RNlist|2}}