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
(new)
 
(some change)
Line 25: Line 25:
  
 
==Example==
 
==Example==
 +
<pre>
 +
{{InfoboxMersennePrime
 +
| title= M51
 +
| rank= 51*
 +
| nvalue= 82 589 933
 +
| top5000id=125874
 +
| digits=[https://www.mersenne.org/primes/digits/M82589933.zip 24 862 048]
 +
| pdigits=[https://www.mersenne.org/primes/perfect/perfect82589933.zip 49 724 095]
 +
| discovery=2018-12-07
 +
| discoverer=[[Patrick Laroche]]
 +
| credit1=[[George Woltman]]
 +
| credit2=[[Aaron Blosser]] et. al.
 +
| project=[[GIMPS]] & [[PrimeNet]]
 +
| press=[https://www.mersenne.org/primes/?press=M82589933 Press release]
 +
}}
 +
</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
Line 59: Line 76:
 
| Digits : || {{{digits}}}
 
| Digits : || {{{digits}}}
 
|-
 
|-
| Perfect number : || 2<sup>{{#expr:{{#replace:{{{nvalue}}}| |}}-1}}</sup> &times; (2<sup>{{{nvalue}}}</sup>-1)
+
| Perfect number : || 2<sup>{{#expr:{{#replace:{{{nvalue}}}| |}}-1}}</sup> &times; (2<sup>{{#replace:{{{nvalue}}}| |}}</sup>-1)
 
|-
 
|-
 
| Digits : || {{{pdigits}}}
 
| Digits : || {{{pdigits}}}
Line 70: Line 87:
 
|-
 
|-
 
{{#if:{{{credit1|}}}|
 
{{#if:{{{credit1|}}}|
| Credit :
+
{{!}} Credit :
 
{{!}} {{{credit1}}}
 
{{!}} {{{credit1}}}
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{credit2|}}}|
 
{{#if:{{{credit2|}}}|
|
+
{{!}}
 
{{!}} {{{credit2}}}
 
{{!}} {{{credit2}}}
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{credit3|}}}|
 
{{#if:{{{credit3|}}}|
|
+
{{!}}
 
{{!}} {{{credit3}}}
 
{{!}} {{{credit3}}}
 
}}
 
}}
 
|-
 
|-
 
| Project : || {{{project}}}
 
| Project : || {{{project}}}
 +
|-
 +
| Link : || {{{press}}}
 
|}
 
|}
</div></includeonly>
+
{{#if:{{#pos:{{{rank}}}|*}}|<span style="font-size:80%;">* The rank could be changed, so provisional.</span>}}</div></includeonly>

Revision as of 14:36, 12 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=
| press=
}}

Example

{{InfoboxMersennePrime
| title= M51
| rank= 51*
| nvalue= 82 589 933
| top5000id=125874
| digits=[https://www.mersenne.org/primes/digits/M82589933.zip 24 862 048]
| pdigits=[https://www.mersenne.org/primes/perfect/perfect82589933.zip 49 724 095]
| discovery=2018-12-07
| discoverer=[[Patrick Laroche]]
| credit1=[[George Woltman]]
| credit2=[[Aaron Blosser]] et. al.
| project=[[GIMPS]] & [[PrimeNet]]
| press=[https://www.mersenne.org/primes/?press=M82589933 Press release]
}}

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 : PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
Number : {{{number}}}
Digits : 589 933.zip PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
Perfect number : 2PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
• (2PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
-1)
Digits : 589 933.zip PhpTags Warning: number_format() expects parameter 1 to be float, string given in Template:Num on line 1
Discovery data :
Date of Discovery : 2018-12-07
Discoverer : Patrick Laroche