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
(changed fields)
(press release at disc.date)
Line 77: Line 77:
 
| 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 : || {{{discovery}}}
+
| Date of Discovery : || {{#ifeq:{{#expr:{{{rank}}}>34}}|1|[https://www.mersenne.org/primes/?press=M{{{nvalue}}} {{{discovery}}}]|{{{discovery}}}}}
 
|-
 
|-
 
| Discoverer : || {{{discoverer}}}
 
| Discoverer : || {{{discoverer}}}

Revision as of 03:39, 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)

<templatedata> { "params": { "title": { "label": "Title", "description": "The title of the infobox.", "example": "M51", "type": "string", "required": true }, "rank": {}, "nvalue": {}, "top5000id": {}, "digits": {}, "pdigits": {}, "number": {}, "discovery": {}, "discoverer": {}, "foundwith": {}, "credits": {} }, "description": "All data for a Mersenne prime." } </templatedata>