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:Williams prime"

From Prime-Wiki
Jump to: navigation, search
(new sort)
(DISPLAYTITLE changed)
Line 54: Line 54:
 
}}
 
}}
 
[[Category:Prime collections]]
 
[[Category:Prime collections]]
</noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Williams primes of the form: {{Kbn|({{#var:b}}-1)|{{#var:b}}|n}}}}[[Category:Williams prime|#.....{{padleft:{{#var:b}}|5}}]]}}
+
</noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Williams primes of the form {{Kbn|{{#expr:{{#var:b}}-1}}|{{#var:b}}|n}}}}[[Category:Williams prime|#.....{{padleft:{{#var:b}}|5}}]]}}
 
==Current data==
 
==Current data==
{| style="border:solid black 1px"
+
{| style="border:solid black 1px; border-radius:5px;"
| <div width="15%" style="background-color:#ddd">
+
| <div width="15%" style="background-color:SkyBlue">
 
  {|  
 
  {|  
 
   | <b>Base :</b> || {{{WiBase}}}
 
   | <b>Base :</b> || {{{WiBase}}}
Line 77: Line 77:
 
  |}
 
  |}
 
  </div>
 
  </div>
|}
+
|}{{#if:{{{WiRemarks|}}}|
{{#if:{{{WiRemarks|}}}|
 
 
{{{!}}  
 
{{{!}}  
{{!}} <div height="120%" style="background-color:#ddd;"><b>Remarks : </b></div> {{!}}{{!}} {{{WiRemarks}}}
+
{{!}} <div height="120%" style="background-color:SkyBlue;"><b>Remarks : </b></div> {{!}}{{!}} {{{WiRemarks}}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}

Revision as of 19:02, 10 April 2019

Description

Template Williams prime

Display of current data for Williams primes, comments will be displayed as references at the bottom.

Calling

{{Williams prime
|WiBase=
|WiMaxn=
|WiDate=
|WiReserved=
|WiNlist=
|WiRemarks=
}}

The category Williams prime is set by default.

Example

{{Williams prime
|WiBase=10
|WiMaxn=1000000
|WiDate=2016
|WiReserved=No
|WiNlist=
1
3
7
19
29
37
93
|WiRemarks=These primes are [[Near-repdigit]] numbers; {{OEIS|l|A056725}}
}}

will create:

Current data

Base : 10
Count : 7
Max n : 1,000,000
Date : 2016
Reserved : Unknown
1, 3, 7, 19, 29, 37, 93
Remarks :
These primes are Near-repdigit numbers (8999...999); sequence A056725 in OEIS