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:Woodall prime"
(reservation automated) |
(ASCII format) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Description== | ==Description== | ||
− | Template " | + | Template "Woodall prime" |
− | Display of current data for [[ | + | Display of current data for [[:category:Woodall prime|(Near/Generalized) Woodall primes]], comments will be displayed as references at the bottom. |
− | == | + | The base and the sign (for near types) are determined from the page title, the same for the categorizations. |
+ | |||
+ | ==Prototype== | ||
<pre> | <pre> | ||
− | {{ | + | {{Woodall prime |
|WoBase= | |WoBase= | ||
|WoMaxn= | |WoMaxn= | ||
Line 14: | Line 16: | ||
|WoNlist= | |WoNlist= | ||
|WoRemarks= | |WoRemarks= | ||
+ | |WoSieve= | ||
}} | }} | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
==Example== | ==Example== | ||
<pre> | <pre> | ||
− | {{ | + | {{Woodall prime |
|WoBase=6 | |WoBase=6 | ||
|WoMaxn=1000000 | |WoMaxn=1000000 | ||
Line 36: | Line 35: | ||
24;123456 | 24;123456 | ||
|WoRemarks=The {{OEIS|l|A059675}} | |WoRemarks=The {{OEIS|l|A059675}} | ||
+ | |WoSieve=y | ||
}} | }} | ||
</pre> | </pre> | ||
will create: | will create: | ||
− | {{ | + | {{Woodall prime |
|WoBase=6 | |WoBase=6 | ||
|WoMaxn=1000000 | |WoMaxn=1000000 | ||
Line 52: | Line 52: | ||
24;123456 | 24;123456 | ||
|WoRemarks=The {{OEIS|l|A059675}} | |WoRemarks=The {{OEIS|l|A059675}} | ||
+ | |WoSieve=y | ||
}} | }} | ||
[[Category:Prime collections]] | [[Category:Prime collections]] | ||
− | </noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Generalized Woodall primes of the form {{Kbn | + | </noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{#switch:{{#explode:{{PAGENAME}}||-2}} |
+ | |P={{#vardefine:s| P}}{{#vardefine:n|(n+1)}}{{#vardefine:p|Near }} | ||
+ | |M={{#vardefine:s| M}}{{#vardefine:n|(n-1)}}{{#vardefine:p|Near }} | ||
+ | |#default={{#vardefine:s|}}{{#vardefine:n|n}}{{#vardefine:p|}}}}{{DISPLAYTITLE:{{#var:p}}Generalized Woodall primes of the form {{Kbn|{{#var:n}}|{{#var:b}}|n}}}}[[Category:Woodall prime{{#var:s}}|#.....{{padleft:{{#var:b}}|5}}]]{{#if:{{{WoNlist|}}}||[[Category:Woodall prime{{#var:s}} without|#.....{{padleft:{{#var:b}}|5}}]]}}{{#if:{{{WoReserved|}}}|{{Reserved|{{{WoReserved}}}}}}}}}{{#ifeq:{{NAMESPACENUMBER}}|10|{{#vardefine:b|6}}{{#vardefine:n|n}}}} | ||
==Current data== | ==Current data== | ||
− | {| | + | {| class="primedata" |
− | | | + | | class="primetemplate color-PrimeTemplate" | |
{| | {| | ||
− | | align="right" | <b>Base :</b> || {{{WoBase}}} | + | | align="right" | <b>ASCII format :</b> || {{#var:n}}*{{#var:b}}^n-1 |
+ | |- | ||
+ | | align="right" | <b>Base :</b> || {{{WoBase}}} {{#if:{{{WoSieve|}}}|{{#ifexist:File:{{PAGENAME}} sieve.zip| ([[:File:{{PAGENAME}} sieve.zip|sieve]])|[[File:{{PAGENAME}} sieve.zip|Upload me!]]}}}} | ||
|- | |- | ||
| align="right" | <b>Count :</b> || {{#if:{{#pos:{{{WoRemarks|}}}|reuse}}|{{#arraydefine:L|{{{WoNlist}}}}}{{#arraysize:L}}|{{NVal list|{{{WoNlist}}}|count}}}} | | align="right" | <b>Count :</b> || {{#if:{{#pos:{{{WoRemarks|}}}|reuse}}|{{#arraydefine:L|{{{WoNlist}}}}}{{#arraysize:L}}|{{NVal list|{{{WoNlist}}}|count}}}} | ||
|- | |- | ||
− | | align="right" | <b>Max | + | | align="right" | <b>Max {{Vn}} :</b> || {{Num|{{{WoMaxn}}}}} |
|- | |- | ||
| align="right" | <b>Date :</b> || {{{WoDate}}} | | align="right" | <b>Date :</b> || {{{WoDate}}} | ||
|- | |- | ||
{{#if:{{{WoReserved|}}}| | {{#if:{{{WoReserved|}}}| | ||
− | {{!}} align="right" {{!}} <b>Reserved :</b> {{!}}{{!}} {{ | + | {{!}} align="right" {{!}} <b>Reserved :</b> {{!}}{{!}} [[{{{WoReserved}}}]]{{#ifeq:{{NAMESPACENUMBER}}|0|<span style="display:none">[[{{{WoReserved}}}/Reserved]]</span>}} |
}} | }} | ||
|} | |} | ||
− | + | | | |
− | | | ||
{| | {| | ||
| {{NVal list|{{{WoNlist}}}}} | | {{NVal list|{{{WoNlist}}}}} | ||
|} | |} | ||
− | |||
|}{{#if:{{{WoRemarks|}}}| | |}{{#if:{{{WoRemarks|}}}| | ||
{{{!}} | {{{!}} | ||
− | {{!}} <div height="120%" | + | {{!}} <div height="120%" class="color-PrimeTemplate"><b>Remarks : </b></div> {{!}}{{!}} {{{WoRemarks}}} |
{{!}}} | {{!}}} | ||
}} | }} |
Latest revision as of 08:59, 4 November 2024
Description
Template "Woodall prime"
Display of current data for (Near/Generalized) Woodall primes, comments will be displayed as references at the bottom.
The base and the sign (for near types) are determined from the page title, the same for the categorizations.
Prototype
{{Woodall prime |WoBase= |WoMaxn= |WoDate= |WoReserved= |WoNlist= |WoRemarks= |WoSieve= }}
Example
{{Woodall prime |WoBase=6 |WoMaxn=1000000 |WoDate=2019-04-04 |WoReserved=Karsten Bonath |WoNlist= 1 2 3 19;C:Test 20 24;123456 |WoRemarks=The {{OEIS|l|A059675}} |WoSieve=y }}
will create:
Current data
|
|
Remarks : |
The sequence A059675 in OEIS |
Notes
- ↑ Test