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
(field number, Top5000id)
(changed fields)
Line 17: Line 17:
 
| discovery=
 
| discovery=
 
| discoverer=
 
| discoverer=
| credit1=
+
| foundwith=
| credit2=
+
| credits=
| credit3=
 
| project=
 
| link1=
 
| link2=
 
| link3=
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 30: Line 25:
 
<pre>
 
<pre>
 
{{InfoboxMersennePrime
 
{{InfoboxMersennePrime
| title= M51
+
| title=M51
| rank= 51*
+
| rank=51
| nvalue= 82589933
+
| nvalue=82589933
 
| top5000id=125874
 
| top5000id=125874
 
| digits=24862048
 
| digits=24862048
Line 39: Line 34:
 
| discovery=2018-12-07
 
| discovery=2018-12-07
 
| discoverer=[[Patrick Laroche]]
 
| discoverer=[[Patrick Laroche]]
| credit1=[[George Woltman]]
+
| foundwith=[[Lucas-Lehmer test]];[[Prime95]] on Intel i5-4590T @ 2.0GHz
| credit2=[[Aaron Blosser]] et. al.
+
| credits=[[George Woltman]];[[Aaron Blosser]] et. al.;([[GIMPS]] & [[PrimeNet]])
| 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]
 
 
}}
 
}}
 
</pre>
 
</pre>
If the <code>rank</code> contains a <code>*</code>, a remark for provisional ranking is shown at the bottom.
 
 
{{InfoboxMersennePrime
 
{{InfoboxMersennePrime
| title= M51
+
| title=M51
| rank= 51*
+
| rank=51
| nvalue= 82589933
+
| nvalue=82589933
 
| top5000id=125874
 
| top5000id=125874
 
| digits=24862048
 
| digits=24862048
Line 58: Line 48:
 
| discovery=2018-12-07
 
| discovery=2018-12-07
 
| discoverer=[[Patrick Laroche]]
 
| discoverer=[[Patrick Laroche]]
| credit1=[[George Woltman]]
+
| foundwith=[[Lucas-Lehmer test]];[[Prime95]] on Intel i5-4590T @ 2.0GHz
| credit2=[[Aaron Blosser]] et. al.
+
| credits=[[George Woltman]];[[Aaron Blosser]] et. al.;([[GIMPS]] & [[PrimeNet]])
| 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]
 
 
}}
 
}}
 
[[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 77: Line 63:
 
| align="left" colspan="1" style="background:SkyBlue" | '''Prime data :''' || style="border-bottom-style:solid; border-width:2px; border-color:SkyBlue;" |
 
| align="left" colspan="1" style="background:SkyBlue" | '''Prime data :''' || style="border-bottom-style:solid; border-width:2px; border-color:SkyBlue;" |
 
|-
 
|-
| Rank : || {{{rank}}}
+
| Rank : || {{{rank}}}{{#ifeq:{{#expr:{{{rank}}}>48}}|1|<span style="font-size:80%;"> ({{C|red|'''Provisional ranking'''}})</span>}}
 
|-
 
|-
| n-value : || {{Num|{{{nvalue}}}}}
+
| n-value : || {{T5000|{{{top5000id}}}|{{Num|{{{nvalue}}}}}}}
 
|-
 
|-
 
| Number : || {{{number}}}
 
| Number : || {{{number}}}
 
|-
 
|-
{{#if:{{{top5000id|}}}|
+
| Digits : || [https://www.mersenne.org/primes/digits/M{{{nvalue}}}.{{#ifeq:{{#expr:{{{rank}}}<32}}|1|txt|zip}} {{Num|{{{digits}}}}}]
{{!}} [[The Prime Pages|Top5000 ID]] :
 
{{!}} {{T5000|{{{top5000id}}}|{{Num|{{{top5000id}}}}}}}
 
}}
 
|-
 
| Digits : || {{Num|{{{digits}}}}}
 
 
|-
 
|-
| Perfect number : || 2<sup>{{Num|{{#expr:{{{nvalue}}}-1}}}}</sup> &times; (2<sup>{{Num|{{{nvalue}}}}}</sup>-1)
+
| Perfect number : || 2<sup>{{Num|{{#expr:{{{nvalue}}}-1}}}}</sup> &bull; (2<sup>{{Num|{{{nvalue}}}}}</sup>-1)
 
|-
 
|-
| Digits : || {{Num|{{{pdigits}}}}}
+
| Digits : || [https://www.mersenne.org/primes/perfect/perfect{{{nvalue}}}.{{#ifeq:{{#expr:{{{rank}}}<32}}|1|txt|zip}} {{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 100: Line 81:
 
| Discoverer : || {{{discoverer}}}
 
| Discoverer : || {{{discoverer}}}
 
|-
 
|-
{{#if:{{{credit1|}}}|
+
| Found with : || {{#replace:{{{foundwith}}}|;|<br>}}
{{!}} Credit{{#if:{{{credit2|}}}|s}} :
 
{{!}} {{{credit1}}}
 
}}
 
|-
 
{{#if:{{{credit2|}}}|
 
{{!}}
 
{{!}} {{{credit2}}}
 
}}
 
|-
 
{{#if:{{{credit3|}}}|
 
{{!}}
 
{{!}} {{{credit3}}}
 
}}
 
|-
 
{{#if:{{{project|}}}|
 
{{!}} Project :
 
{{!}} {{{project}}}
 
}}
 
|-
 
{{#if:{{{link1|}}}|
 
{{!}} Link{{#if:{{{link2|}}}|s}} :
 
{{!}} {{{link1}}}
 
}}
 
|-
 
{{#if:{{{link2|}}}|
 
{{!}}
 
{{!}} {{{link2}}}
 
}}
 
 
|-
 
|-
{{#if:{{{link3|}}}|
+
{{#if:{{{credits|}}}|
{{!}}
+
{{!}} Credits :
{{!}} {{{link3}}}
+
{{!}} {{#replace:{{{credits}}}|;|<br>}}
 
}}
 
}}
 
|}
 
|}
{{#if:{{#pos:{{{rank}}}|*}}|<span style="font-size:80%;">* The rank could be changed, so provisional.</span>}}</div></includeonly>
+
</div></includeonly>
 
<noinclude>
 
<noinclude>
 
<templatedata>
 
<templatedata>
Line 155: Line 108:
 
"discovery": {},
 
"discovery": {},
 
"discoverer": {},
 
"discoverer": {},
"credit1": {},
+
"foundwith": {},
"credit2": {},
+
"credits": {}
"credit3": {},
 
"project": {},
 
"link1": {},
 
"link2": {},
 
"link3": {}
 
 
},
 
},
 
"description": "All data for a Mersenne prime."
 
"description": "All data for a Mersenne prime."

Revision as of 03:30, 17 February 2019

Template: InfoboxMersennePrime

Purpose

Showing information of an Mersenne prime.

Calling

{{InfoboxMersennePrime
| title=
| rank=
| nvalue=
| top5000id=
| digits=
| pdigits=
| number=
| discovery=
| discoverer=
| foundwith=
| credits=
}}

Example

{{InfoboxMersennePrime
| title=M51
| rank=51
| nvalue=82589933
| top5000id=125874
| digits=24862048
| pdigits=49724095
| number=148894445742...325217902591
| discovery=2018-12-07
| discoverer=[[Patrick Laroche]]
| foundwith=[[Lucas-Lehmer test]];[[Prime95]] on Intel i5-4590T @ 2.0GHz
| credits=[[George Woltman]];[[Aaron Blosser]] et. al.;([[GIMPS]] & [[PrimeNet]])
}}
M51
Prime class :
Type : Mersenne prime
Formula : Mn = 2n - 1
Prime data :
Rank : 51 (Provisional ranking)
n-value : 82,589,933
Number : 148894445742...325217902591
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
Found with : Lucas-Lehmer test
Prime95 on Intel i5-4590T @ 2.0GHz
Credits : George Woltman
Aaron Blosser et. al.
(GIMPS & PrimeNet)

All data for a Mersenne prime.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

The title of the infobox.

Default
empty
Example
M51
Auto value
empty
Stringrequired
Rankrank

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Nvaluenvalue

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Top5000idtop5000id

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Digitsdigits

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Pdigitspdigits

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Numbernumber

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Discoverydiscovery

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Discovererdiscoverer

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Foundwithfoundwith

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Creditscredits

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional