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

From Prime-Wiki
Jump to: navigation, search
(hidden reservation by person/project)
(multires ability added)
Line 8: Line 8:
 
<pre>
 
<pre>
 
{{Proth prime
 
{{Proth prime
 +
|PMultiRes=
 
|Pk=
 
|Pk=
 
|PNash=
 
|PNash=
Line 18: Line 19:
 
</pre>
 
</pre>
  
==Categories set==
+
==Explanations==
 
In case of the following conditions special categories will be set automatically:
 
In case of the following conditions special categories will be set automatically:
 
*k-value is disvisible by 15 &rarr; category [[:Category:Proth k=15k value|Proth 15k]] is set
 
*k-value is disvisible by 15 &rarr; category [[:Category:Proth k=15k value|Proth 15k]] is set
Line 26: Line 27:
  
 
The category [[:Category:Proth prime|Proth prime]] is set by default.
 
The category [[:Category:Proth prime|Proth prime]] is set by default.
 +
 +
If "PMultiRes" is set, the parameters "PMaxn", "PDate" and "PReserved" (if given) will be ignored and replaced by the data from the [[:Category:Multi Reservation|Multi Reservation]] with ID given.
  
 
==See also==
 
==See also==
Line 60: Line 63:
 
|PRemarks=For this ''k''-value theses are the [[Fermat prime]]s.
 
|PRemarks=For this ''k''-value theses are the [[Fermat prime]]s.
 
}}
 
}}
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Proth primes of the form {{Kbn|+|{{#explode:{{PAGENAME}}||-1}}|2|n}}}}{{#if:{{{PReserved|}}}|{{Reserved|{{{PReserved}}}}}}}}}
+
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Proth primes of the form {{Kbn|+|{{#explode:{{PAGENAME}}||-1}}|2|n}}}}{{#if:{{{PMultiRes|}}}|{{ReservedM|{{{PMultiRes}}}}}|{{#if:{{{PReserved|}}}|{{Reserved|{{{PReserved}}}}}}}}}}}
 
==Current data==
 
==Current data==
 
{| class="primedata"
 
{| class="primedata"
Line 71: Line 74:
 
   | align="right"| <b>Nash :</b> || {{{PNash}}}
 
   | align="right"| <b>Nash :</b> || {{{PNash}}}
 
   |-
 
   |-
   | align="right"| <b>Max&nbsp;<i>n</i> :</b> || {{Num|{{{PMaxn}}}}}
+
   | align="right"| <b>Max&nbsp;<i>n</i> :</b> || {{#if:{{{PMultiRes|}}}|{{Num|{{Project:Multi Reservation {{{PMultiRes}}}-NMax}}}}|{{Num|{{{PMaxn}}}}}}}
 
   |-
 
   |-
   | align="right"| <b>Date :</b> || {{{PDate}}}
+
   | align="right"| <b>Date :</b> || {{#if:{{{PMultiRes|}}}|{{Project:Multi Reservation {{{PMultiRes}}}-Date}}|{{{PDate}}}}}
 
   |-
 
   |-
  {{#if:{{{PReserved|}}}|
+
{{#if:{{{PMultiRes|}}}|{{#vardefine:_res|{{Project:Multi Reservation {{{PMultiRes}}}-Contributor}}}}|{{#if:{{{PReserved|}}}|{{#vardefine:_res|{{{PReserved}}}}}}}}}{{#if:{{#var:_res}}|
    {{!}} align="right" {{!}} <b>Reserved :</b> {{!}}{{!}} [[{{{PReserved}}}]]{{#ifeq:{{NAMESPACENUMBER}}|0|<span style="display:none">[[{{{PReserved}}}/Reserved]]</span>}}
+
  {{!}} align="right" {{!}} <b>Reserved :</b> {{!}}{{!}} {{Contribs|{{#var:_res}}}}
 
   }}
 
   }}
 
  |}
 
  |}

Revision as of 13:30, 12 May 2019

Description

Template Proth prime

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

Calling

{{Proth prime
|PMultiRes=
|Pk=
|PNash=
|PMaxn=
|PDate=
|PReserved=
|PNlist=
|PRemarks=
}}

Explanations

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

  • k-value is disvisible by 15 → category Proth 15k is set
  • k-value is disvisible by 2145 → category Proth 2145k is set
  • k-value is disvisible by 2805 → category Proth 2805k is set
  • Nash-weight < 1000 → category Proth Low weight is set

The category Proth prime is set by default.

If "PMultiRes" is set, the parameters "PMaxn", "PDate" and "PReserved" (if given) will be ignored and replaced by the data from the Multi Reservation with ID given.

See also

Example

{{Proth prime
|Pk=15
|PNash=239
|PMaxn=20
|PDate=2019-03-01
|PReserved=Karsten Bonath
|PNlist=
2;T:ST;C: Testtext
3;T:SW;C:[[Examples]]
5;C:'''Example'''
15;43912;C:with Top5000 entry
|PRemarks=For this ''k''-value theses are the [[Fermat prime]]s.
}}

will create:

Current data

k , b : 15 , {{{Pb}}}
Count :
Attention! Parameter PCount=4 not given!
Nash : 239
Max n : 20
Date : 2019-03-01
Reserved : Karsten Bonath
2[1], 3[2], 5[3], 15[4]
Remarks :
For this k-value theses are the Fermat primes.

Notes

  1. S.G. n=2, Twin n=2, Testtext
  2. S.G. n=3, Woodall, Examples
  3. Example
  4. with Top5000 entry