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

Template:Reuse Primelist

From Prime-Wiki
Jump to: navigation, search

Purpose

Prints members of primes of another given prime list for a different base or n-value.

Calling

{{Reuse Primelist|<prime numbers>|<list>|<value>}}
  • <value> has different meanings:
- <value> only a number: n-values of given list divided by <value>
- <value> number with leading sign (+/-): n-values of given list are added/substracted by <value> and greater 0
  • Exapmle
- <value> = 2 -> n-value div 2
- <value> = +2 -> n-value + 2
- <value> = -2 -> n-value - 2

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 (n-values divided by 2 resulting in an integer) by calling

{{Reuse Primelist|Riesel prime 2 3|RNlist|2}}

Same list above by calling (note there's no value '0' here)

{{Reuse Primelist|Riesel prime 2 3|RNlist|-1}}
1, 2, 3, 5, 6, 10, 17, 33, 37, 42, 54, 63, 75, 93, 102, 142, 205, 215, 305, 323, 390, 457, 469, 826, 1273, 3275, 4203, 5133, 7558, 12675, 14897, 18122, 18818, 25689, 26458, 41627, 51386, 71782, 80329, 85686, 88170, 97062, 123629, 155929, 164986, 234759, 414839, 584994, 702037, 727698, 992699, 1201045, 1232254, 2312733, 3136254, 4235413, 6090514, 11484017, 11731849, 11895717, 16819290, 17748033, 18196594, 18924987, 20928755, 22103375

and by calling

{{Reuse Primelist|Riesel prime 2 3|RNlist|+1}}
2, 3, 4, 5, 7, 8, 12, 19, 35, 39, 44, 56, 65, 77, 95, 104, 144, 207, 217, 307, 325, 392, 459, 471, 828, 1275, 3277, 4205, 5135, 7560, 12677, 14899, 18124, 18820, 25691, 26460, 41629, 51388, 71784, 80331, 85688, 88172, 97064, 123631, 155931, 164988, 234761, 414841, 584996, 702039, 727700, 992701, 1201047, 1232256, 2312735, 3136256, 4235415, 6090516, 11484019, 11731851, 11895719, 16819292, 17748035, 18196596, 18924989, 20928757, 22103377