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:InfoboxMersennePrime"

From Prime-Wiki
Jump to: navigation, search
(some change)
(template Num, some changes)
Line 20: Line 20:
 
| credit3=
 
| credit3=
 
| project=
 
| project=
| press=
+
| link1=
 +
| link2=
 +
| link3=
 
}}
 
}}
 
</pre>
 
</pre>
Line 29: Line 31:
 
| title= M51
 
| title= M51
 
| rank= 51*
 
| rank= 51*
| nvalue= 82 589 933
+
| nvalue= 82589933
 
| top5000id=125874
 
| top5000id=125874
| digits=[https://www.mersenne.org/primes/digits/M82589933.zip 24 862 048]
+
| digits=24862048
| pdigits=[https://www.mersenne.org/primes/perfect/perfect82589933.zip 49 724 095]
+
| pdigits=49724095
 
| discovery=2018-12-07
 
| discovery=2018-12-07
 
| discoverer=[[Patrick Laroche]]
 
| discoverer=[[Patrick Laroche]]
Line 38: Line 40:
 
| credit2=[[Aaron Blosser]] et. al.
 
| credit2=[[Aaron Blosser]] et. al.
 
| project=[[GIMPS]] & [[PrimeNet]]
 
| project=[[GIMPS]] & [[PrimeNet]]
| press=[https://www.mersenne.org/primes/?press=M82589933 Press release]
+
| link1=[https://www.mersenne.org/primes/?press=M82589933 Press release]
 +
| link2=[https://www.mersenne.org/primes/digits/M82589933.zip Mersenne51 as ZIP]
 +
| link3=[https://www.mersenne.org/primes/perfect/perfect82589933.zip Perfect51 as ZIP]
 
}}
 
}}
 
</pre>
 
</pre>
Line 45: Line 49:
 
| title= M51
 
| title= M51
 
| rank= 51*
 
| rank= 51*
| nvalue= 82 589 933
+
| nvalue= 82589933
 
| top5000id=125874
 
| top5000id=125874
| digits=[https://www.mersenne.org/primes/digits/M82589933.zip 24 862 048]
+
| digits=24862048
| pdigits=[https://www.mersenne.org/primes/perfect/perfect82589933.zip 49 724 095]
+
| pdigits=49724095
 
| discovery=2018-12-07
 
| discovery=2018-12-07
 
| discoverer=[[Patrick Laroche]]
 
| discoverer=[[Patrick Laroche]]
Line 54: Line 58:
 
| credit2=[[Aaron Blosser]] et. al.
 
| credit2=[[Aaron Blosser]] et. al.
 
| project=[[GIMPS]] & [[PrimeNet]]
 
| project=[[GIMPS]] & [[PrimeNet]]
| press=[https://www.mersenne.org/primes/?press=M82589933 Press release]
+
| link1=[https://www.mersenne.org/primes/?press=M82589933 Press release]
 +
| link2=[https://www.mersenne.org/primes/digits/M82589933.zip Mersenne51 as ZIP]
 +
| link3=[https://www.mersenne.org/primes/perfect/perfect82589933.zip Perfect51 as ZIP]
 
}}
 
}}
 
[[Category:Infoboxes]]</noinclude><includeonly><div style="width: auto; float: right; padding: 5px; border: solid 1px black;">
 
[[Category:Infoboxes]]</noinclude><includeonly><div style="width: auto; float: right; padding: 5px; border: solid 1px black;">
Line 70: Line 76:
 
| Rank : || {{{rank}}}
 
| Rank : || {{{rank}}}
 
|-
 
|-
| n-value : || {{{nvalue}}}
+
| n-value : || {{Num|{{{nvalue}}}}}
 
|-
 
|-
 
| [[The Prime Pages|Top5000 ID]] : || {{T5000|{{{top5000id}}}|{{{top5000id}}}}}
 
| [[The Prime Pages|Top5000 ID]] : || {{T5000|{{{top5000id}}}|{{{top5000id}}}}}
 
|-
 
|-
| Digits : || {{{digits}}}
+
| Digits : || {{Num|{{{digits}}}}}
 
|-
 
|-
| Perfect number : || 2<sup>{{#expr:{{#replace:{{{nvalue}}}| |}}-1}}</sup> &times; (2<sup>{{#replace:{{{nvalue}}}| |}}</sup>-1)
+
| Perfect number : || 2<sup>{{Num|{{#expr:{{{nvalue}}}-1}}}}</sup> &times; (2<sup>{{Num|{{{nvalue}}}}}</sup>-1)
 
|-
 
|-
| Digits : || {{{pdigits}}}
+
| Digits : || {{Num|{{{pdigits}}}}}
 
|-
 
|-
 
| align="left" colspan="1" style="background:SkyBlue" | '''Discovery data :''' || style="border-bottom-style:solid; border-width:2px; border-color:SkyBlue;" |
 
| align="left" colspan="1" style="background:SkyBlue" | '''Discovery data :''' || style="border-bottom-style:solid; border-width:2px; border-color:SkyBlue;" |
Line 87: Line 93:
 
|-
 
|-
 
{{#if:{{{credit1|}}}|
 
{{#if:{{{credit1|}}}|
{{!}} Credit :
+
{{!}} Credit{{#if:{{{credit2|}}}|s}} :
 
{{!}} {{{credit1}}}
 
{{!}} {{{credit1}}}
 
}}
 
}}
Line 101: Line 107:
 
}}
 
}}
 
|-
 
|-
| Project : || {{{project}}}
+
{{#if:{{{project|}}}|
 +
{{!}} Project :
 +
{{!}} {{{project}}}
 +
}}
 +
|-
 +
{{#if:{{{link1|}}}|
 +
{{!}} Link{{#if:{{{link2|}}}|s}} :
 +
{{!}} {{{link1}}}
 +
}}
 +
|-
 +
{{#if:{{{link2|}}}|
 +
{{!}}
 +
{{!}} {{{link2}}}
 +
}}
 
|-
 
|-
| Link : || {{{press}}}
+
{{#if:{{{link3|}}}|
 +
{{!}}
 +
{{!}} {{{link3}}}
 +
}}
 
|}
 
|}
 
{{#if:{{#pos:{{{rank}}}|*}}|<span style="font-size:80%;">* The rank could be changed, so provisional.</span>}}</div></includeonly>
 
{{#if:{{#pos:{{{rank}}}|*}}|<span style="font-size:80%;">* The rank could be changed, so provisional.</span>}}</div></includeonly>
Line 128: Line 150:
 
"credit3": {},
 
"credit3": {},
 
"project": {},
 
"project": {},
"press": {}
+
"link1": {},
 +
"link2": {},
 +
"link3": {}
 
},
 
},
 
"description": "All data for a Mersenne prime."
 
"description": "All data for a Mersenne prime."

Revision as of 11:46, 14 February 2019

Template: InfoboxMersennePrime

Purpose

Showing information of an Mersenne prime.

Calling

{{InfoboxMersennePrime
| title=
| rank=
| nvalue=
| top5000id=
| digits=
| pdigits=
| discovery=
| discoverer=
| credit1=
| credit2=
| credit3=
| project=
| link1=
| link2=
| link3=
}}

Example

{{InfoboxMersennePrime
| title= M51
| rank= 51*
| nvalue= 82589933
| top5000id=125874
| digits=24862048
| pdigits=49724095
| discovery=2018-12-07
| discoverer=[[Patrick Laroche]]
| credit1=[[George Woltman]]
| credit2=[[Aaron Blosser]] et. al.
| project=[[GIMPS]] & [[PrimeNet]]
| link1=[https://www.mersenne.org/primes/?press=M82589933 Press release]
| link2=[https://www.mersenne.org/primes/digits/M82589933.zip Mersenne51 as ZIP]
| link3=[https://www.mersenne.org/primes/perfect/perfect82589933.zip Perfect51 as ZIP]
}}

If the rank contains a *, a remark for provisional ranking is shown at the bottom.

M51
Prime class :
Type : Mersenne prime
Formula : Mn = 2n - 1
Prime data :
Rank : 51*
n-value : 82,589,933
Number : {{{number}}}
Digits : 24,862,048
Perfect number : 282,589,932 • (282,589,933-1)
Digits : 49,724,095
Discovery data :
Date of Discovery : 2018-12-07
Discoverer : Patrick Laroche

<templatedata> { "params": { "title": { "label": "Title", "description": "The title of the infobox.", "example": "M51", "type": "string", "required": true }, "rank": {}, "nvalue": {}, "top5000id": {}, "digits": {}, "pdigits": {}, "discovery": {}, "discoverer": {}, "credit1": {}, "credit2": {}, "credit3": {}, "project": {}, "link1": {}, "link2": {}, "link3": {} }, "description": "All data for a Mersenne prime." } </templatedata>