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"
m |
(>48 provisional) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
| digits= | | digits= | ||
| pdigits= | | pdigits= | ||
+ | | number= | ||
| discovery= | | discovery= | ||
| discoverer= | | discoverer= | ||
− | | | + | | foundwith= |
− | | | + | | credits= |
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
</pre> | </pre> | ||
Line 29: | 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 | ||
| pdigits=49724095 | | pdigits=49724095 | ||
+ | | number=148894445742...325217902591 | ||
| discovery=2018-12-07 | | discovery=2018-12-07 | ||
| discoverer=[[Patrick Laroche]] | | discoverer=[[Patrick Laroche]] | ||
− | | | + | | foundwith=[[Lucas-Lehmer test]];[[Prime95]] on Intel i5-4590T @ 2.0GHz |
− | | | + | | credits=[[George Woltman]];[[Aaron Blosser]] et. al.;([[GIMPS]] & [[PrimeNet]]) |
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
</pre> | </pre> | ||
− | |||
{{InfoboxMersennePrime | {{InfoboxMersennePrime | ||
− | | title= M51 | + | | title=M51 |
− | | rank= 51 | + | | rank=51 |
− | | nvalue= 82589933 | + | | nvalue=82589933 |
| top5000id=125874 | | top5000id=125874 | ||
| digits=24862048 | | digits=24862048 | ||
| pdigits=49724095 | | pdigits=49724095 | ||
+ | | number=148894445742...325217902591 | ||
| discovery=2018-12-07 | | discovery=2018-12-07 | ||
| discoverer=[[Patrick Laroche]] | | discoverer=[[Patrick Laroche]] | ||
− | | | + | | foundwith=[[Lucas-Lehmer test]];[[Prime95]] on Intel i5-4590T @ 2.0GHz |
− | | | + | | credits=[[George Woltman]];[[Aaron Blosser]] et. al.;([[GIMPS]] & [[PrimeNet]]) |
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | [[Category:Infoboxes]]</noinclude><includeonly><div style="width: auto; float: right; padding: 5px; border: solid 1px black;"> | + | |
+ | ==Notes== | ||
+ | *'''rank''': a remark with ''Provisional ranking'' is given if rank>48, so has to be changed if the range is double checked. | ||
+ | *'''nvlaue''': link to [[The Prime Pages]] done by given Top5000 ID. | ||
+ | *'''digits''': link to the Mersenne number with full digits given is determined by: | ||
+ | ::rank < 32 : number as TXT file | ||
+ | ::others : number as ZIP file | ||
+ | *'''pdigits''': link to the perfect number with full digits given is determined by: | ||
+ | ::rank < 32 : number as TXT file | ||
+ | ::others : number as ZIP file | ||
+ | *'''discovery''': a link to the press release by [[PrimeGrid]] is given, when rank > 34. | ||
+ | *empty or not given fields are not displayed | ||
+ | |||
+ | ==Template parameters== | ||
+ | [[Category:Infoboxes|MersennePrime]]</noinclude><includeonly><div style="width: auto; float: right; padding: 5px; border: solid 1px black; border-radius:5px;"> | ||
{| | {| | ||
! align="center" colspan="2" style="background:SkyBlue; font-size:150%"| {{{title}}} | ! align="center" colspan="2" style="background:SkyBlue; font-size:150%"| {{{title}}} | ||
Line 74: | Line 77: | ||
| 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 : || {{#ifeq:{{#expr:{{{rank}}}>18}}|1|{{T5000|{{{top5000id}}}|{{Num|{{{nvalue}}}}}}}|{{Num|{{{nvalue}}}}}}} |
|- | |- | ||
− | | | + | | Number : || {{{number}}} |
|- | |- | ||
− | | Digits : || {{Num|{{{digits}}}}} | + | | Digits : || [https://www.mersenne.org/primes/digits/M{{{nvalue}}}.{{#ifeq:{{#expr:{{{rank}}}<32}}|1|txt|zip}} {{Num|{{{digits}}}}}] |
|- | |- | ||
− | | Perfect number : || 2<sup>{{Num|{{#expr:{{{nvalue}}}-1}}}}</sup> & | + | | Perfect number : || 2<sup>{{Num|{{#expr:{{{nvalue}}}-1}}}}</sup> • (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;" | | ||
|- | |- | ||
− | | Date of Discovery : || {{{ | + | | Date of Discovery : || {{#ifeq:{{#expr:{{{rank}}}>34}}|1|[https://www.mersenne.org/primes/?press=M{{{nvalue}}} {{{discovery}}}]|{{{discovery}}}}} |
− | | | ||
− | | | ||
|- | |- | ||
− | + | | Discoverer : || {{#replace:{{{discoverer}}}|;|<br>}} | |
− | |||
− | |||
− | }} | ||
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{foundwith|}}}| |
− | {{!}} | + | {{!}} Found with : |
− | {{!}} {{{ | + | {{!}} {{#replace:{{{foundwith}}}|;|<br>}} |
}} | }} | ||
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{credits|}}}| |
− | {{!}} | + | {{!}} Credits : |
− | + | {{!}} {{#replace:{{{credits}}}|;|<br>}} | |
− | |||
− | |||
− | |||
− | {{!}} | ||
− | |||
− | |||
− | |||
− | {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
|} | |} | ||
− | + | </div></includeonly> | |
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
Line 133: | Line 111: | ||
"params": { | "params": { | ||
"title": { | "title": { | ||
− | "label": "Title", | + | "label": { |
− | "description": "The title of the infobox.", | + | "en": "Title", |
− | "example": "M51", | + | "de": "Titel" |
+ | }, | ||
+ | "description": { | ||
+ | "en": "The title of the infobox.", | ||
+ | "de": "Text im Header der Infobox" | ||
+ | }, | ||
+ | "example": { | ||
+ | "en": "M51", | ||
+ | "de": "M51" | ||
+ | }, | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
Line 144: | Line 131: | ||
"digits": {}, | "digits": {}, | ||
"pdigits": {}, | "pdigits": {}, | ||
+ | "number": {}, | ||
"discovery": {}, | "discovery": {}, | ||
"discoverer": {}, | "discoverer": {}, | ||
− | " | + | "foundwith": {}, |
− | " | + | "credits": {} |
− | + | }, | |
− | " | + | "description": { |
− | + | "en": "All data for a Mersenne prime.", | |
− | " | + | "de": "Alle Daten einer Mersennschen Primzahl." |
− | |||
}, | }, | ||
− | " | + | "format": "block" |
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 05:29, 7 October 2021
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) |
Notes
- rank: a remark with Provisional ranking is given if rank>48, so has to be changed if the range is double checked.
- nvlaue: link to The Prime Pages done by given Top5000 ID.
- digits: link to the Mersenne number with full digits given is determined by:
- rank < 32 : number as TXT file
- others : number as ZIP file
- pdigits: link to the perfect number with full digits given is determined by:
- rank < 32 : number as TXT file
- others : number as ZIP file
- discovery: a link to the press release by PrimeGrid is given, when rank > 34.
- empty or not given fields are not displayed
Template parameters
<templatedata> { "params": { "title": { "label": { "en": "Title", "de": "Titel" }, "description": { "en": "The title of the infobox.", "de": "Text im Header der Infobox" }, "example": { "en": "M51", "de": "M51" }, "type": "string", "required": true }, "rank": {}, "nvalue": {}, "top5000id": {}, "digits": {}, "pdigits": {}, "number": {}, "discovery": {}, "discoverer": {}, "foundwith": {}, "credits": {} }, "description": { "en": "All data for a Mersenne prime.", "de": "Alle Daten einer Mersennschen Primzahl." }, "format": "block" } </templatedata>