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:Riesel prime"

From Prime-Wiki
Jump to: navigation, search
(cat. missing range if RMaxn/RMultiRes set both)
(alerts for RCount)
Line 96: Line 96:
 
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Riesel primes of the form {{Kbn|{{#explode:{{PAGENAME}}||-1}}|2|n}}}}{{#if:{{{RMultiRes|}}}|{{ReservedM|{{{RMultiRes}}}}}|{{#if:{{{RReserved|}}}|{{Reserved|{{{RReserved}}}}}}}}}<!--
 
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Riesel primes of the form {{Kbn|{{#explode:{{PAGENAME}}||-1}}|2|n}}}}{{#if:{{{RMultiRes|}}}|{{ReservedM|{{{RMultiRes}}}}}|{{#if:{{{RReserved|}}}|{{Reserved|{{{RReserved}}}}}}}}}<!--
 
-->{{#if:{{{RCount|}}}||[[Category:Missing RCount]]}}<!--
 
-->{{#if:{{{RCount|}}}||[[Category:Missing RCount]]}}<!--
-->{{#vardefine:_cnt|{{NVal list|{{{RNlist}}}|count}}}}{{#if:{{{RCount|}}}|{{#ifeq:{{{RCount|}}}|{{#var:_cnt}}||{{Alert|Attention!|Parameter RCount ({{{RCount}}}) differs from counting ({{#var:_cnt}}). Please adjust RCount.}}[[Category:Wrong RCount]]}}}}<!--
+
-->{{#vardefine:_cnt|{{NVal list|{{{RNlist}}}|count}}}}<!--
-->{{#vardefine:_ris|0}}{{#ifeq:{{{RCount}}}|0|{{#ifeq:{{{RNash}}}|0|{{#ifeq:{{{RMaxn}}}|0|{{#vardefine:_ris|1}}}}}}}}}}
+
-->{{#vardefine:_ris|0}}{{#ifeq:{{{RCount}}}|0|{{#ifeq:{{{RNash}}}|0|{{#ifeq:{{{RMaxn}}}|0|{{#vardefine:_ris|1}}}}}}}}}}{{#ifeq:{{NAMESPACENUMBER}}|10|{{#vardefine:_cnt|8}}}}
 
==Current data==
 
==Current data==
 
{| class="primedata"
 
{| class="primedata"
Line 104: Line 104:
 
   | align="right"| <b>k-value :</b> || {{{Rk}}} {{#if:{{{RSieve|}}}|{{#ifexist:File:{{PAGENAME}} sieve.zip|&nbsp;([[:File:{{PAGENAME}} sieve.zip|sieve]])|[[File:{{PAGENAME}} sieve.zip|Upload me!]]}}}} {{#if:{{{Rk|}}}|{{#ifeq:{{#var:_ris}}|0|{{K-type|Riesel|{{{Rk}}}}}}}}}
 
   | align="right"| <b>k-value :</b> || {{{Rk}}} {{#if:{{{RSieve|}}}|{{#ifexist:File:{{PAGENAME}} sieve.zip|&nbsp;([[:File:{{PAGENAME}} sieve.zip|sieve]])|[[File:{{PAGENAME}} sieve.zip|Upload me!]]}}}} {{#if:{{{Rk|}}}|{{#ifeq:{{#var:_ris}}|0|{{K-type|Riesel|{{{Rk}}}}}}}}}
 
   |-
 
   |-
   | align="right"| <b>Count :</b> || {{#if:{{{RCount|}}}|{{{RCount}}}|{{#var:_cnt}}}}
+
   | align="right"| <b>Count :</b> || {{#if:{{{RCount|}}}|{{#ifeq:{{{RCount|}}}|{{#var:_cnt}}|{{{RCount}}}|{{Alert|Attention!|Parameter RCount&#61;{{{RCount}}} differs from counting&#61;{{#var:_cnt}}}}}}[[Category:Wrong RCount]]|{{Alert|Attention!|Parameter RCount&#61;{{#var:_cnt}} not given!}}}}
 
   |-
 
   |-
 
   | align="right"| <b>Nash :</b> || {{{RNash}}}
 
   | align="right"| <b>Nash :</b> || {{{RNash}}}

Revision as of 13:42, 4 August 2020

Description

Template Riesel prime

Display of current data for Riesel primes, comments will be displayed as references at the bottom.

Prototype

{{Riesel prime
|Rk=
|RCount=
|RNash=
|RMaxn=
|RDate=
|RReserved=
|RMultiRes=
|RNlist=
|RRemarks=
|RSieve=
}}

Parameters

  • Rk: the k-value of k•2n-1
  • RCount: the number of n-values given
If no count is given, this will be automatically counted. If given and differs from automated value, a warning will be shown.
  • RNash: the Nash weight
  • RMaxn: highest n-value of continuous searched range (from n=1)
  • RDate: last date of edit (mostly latest history entry)
  • RReserved: person(s) who reserved this sequence (comma separated)
  • RMultiRes: number of Template:Multi Reservation: RMaxn and RDate will be taken from there
  • RNlist: list of every n-value (one per row) with comments
  • RRemarks: any helpful text or links for this sequence
  • RSieve: if set a zip-file can be uploaded (filename is given then) if not available; if exists file it's downloadable

Categories set

In case of the following conditions special categories will be set automatically:

The category Riesel prime is set by default.

See also

Example

{{Riesel prime
|Rk=19
|RCount=8
|RNash=2390
|RMaxn=20
|RDate=2019-03-01
|RReserved=Karsten Bonath,Euclid
|RMultiRes=
|RNlist=
2;T:ST;C:'''[[M1]]''', Near Woodall: (1+1)*2^1-1
3;T:SW;C:[[M2]], Woodall: 2*2^2-1
5;C:[[M3]], Near Woodall: (3+1)*2^3-1
7;C:[[M4]], Near Woodall: (5-1)*2^5-1
13;C:[[M5]]
17;C:[[M6]]
19;C:[[M7]], Near Woodall: (15+1)*2^15-1
4253;43912;C:[[M19]]
|RRemarks=For this ''k''-value theses are the [[Mersenne prime]]s.
|RSieve=y
}}

will create:

Current data

k , b : 19 , {{{Rb}}} Upload me!
Count : 8
Nash : 2390
Max n : 20
Date : 2019-03-01
Reserved : Karsten Bonath, Euclid
2[1], 3[2], 5[3], 7[4], 13[5], 17[6], 19[7], 4253[8]
Remarks :
For this k-value theses are the Mersenne primes.

Notes

  1. Sophie Germain n=2, Twin n=2, M1, Near Woodall: (1+1)*2^1-1
  2. Sophie Germain n=3, Woodall, M2, Woodall: 2*2^2-1
  3. M3, Near Woodall: (3+1)*2^3-1
  4. M4, Near Woodall: (5-1)*2^5-1
  5. M5
  6. M6
  7. M7, Near Woodall: (15+1)*2^15-1
  8. M19