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:Cullen prime"
m |
(order) |
||
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Description== | ==Description== | ||
− | Template " | + | Template "Cullen prime" |
− | Displays current data for [[ | + | Displays current data for [[:Category:Cullen prime|(Near/Generalized) Cullen primes]], comments will be displayed as references at the bottom. |
− | == | + | If there are no {{Vn}} values given, then the category [[:Category:Cullen prime without|Cullen prime without]] is also set. |
+ | |||
+ | ==Prototype== | ||
<pre> | <pre> | ||
− | {{ | + | {{Cullen prime |
|CuBase= | |CuBase= | ||
|CuMaxn= | |CuMaxn= | ||
|CuDate= | |CuDate= | ||
|CuReserved= | |CuReserved= | ||
+ | |CuMultiRes= | ||
|CuNlist= | |CuNlist= | ||
|CuRemarks= | |CuRemarks= | ||
}} | }} | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
==Example== | ==Example== | ||
<pre> | <pre> | ||
− | {{ | + | {{Cullen prime |
|CuBase=4 | |CuBase=4 | ||
|CuMaxn=1234 | |CuMaxn=1234 | ||
|CuDate=2019-04-26 | |CuDate=2019-04-26 | ||
− | |CuReserved= | + | |CuReserved=Karsten Bonath,test |
+ | |CuMultiRes= | ||
|CuNlist= | |CuNlist= | ||
1 | 1 | ||
Line 33: | Line 33: | ||
33 | 33 | ||
193;C:test | 193;C:test | ||
− | |CuRemarks=The {{OEIS|l| | + | |CuRemarks=The {{OEIS|l|A007646}} |
}} | }} | ||
</pre> | </pre> | ||
will generate | will generate | ||
− | {{ | + | {{Cullen prime |
|CuBase=4 | |CuBase=4 | ||
|CuMaxn=1234 | |CuMaxn=1234 | ||
|CuDate=2019-04-26 | |CuDate=2019-04-26 | ||
− | |CuReserved= | + | |CuReserved=Karsten Bonath,test |
+ | |CuMultiRes= | ||
|CuNlist= | |CuNlist= | ||
1 | 1 | ||
Line 48: | Line 49: | ||
33 | 33 | ||
193;C:test | 193;C:test | ||
− | |CuRemarks=The {{OEIS|l| | + | |CuRemarks=The {{OEIS|l|A007646}} |
}} | }} | ||
− | [[Category:Prime collections]] | + | [[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{#if:{{{CuMultiRes|}}}|{{ReservedM|{{{CuMultiRes}}}}}|{{#if:{{{CuReserved|}}}|{{Reserved|{{{CuReserved}}}}}}}}}{{#switch:{{#explode:{{PAGENAME}}||-2}} |
− | </noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Generalized Cullen primes of the form {{Kbn|+ | + | |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 Cullen primes of the form {{Kbn|+|{{#var:n}}|{{#var:b}}|n}}}}[[Category:Cullen prime{{#var:s}}|#.....{{padleft:{{#var:b}}|5}}]]{{#if:{{{CuNlist|}}}||[[Category:Cullen prime{{#var:s}} without|#.....{{padleft:{{#var:b}}|5}}]]}}}}{{#ifeq:{{NAMESPACENUMBER}}|10|{{#vardefine:b|4}}{{#vardefine:n|n}}}} | ||
==Current data== | ==Current data== | ||
− | {| | + | {| class="primedata" |
− | | | + | | class="primetemplate color-PrimeTemplate" | |
{| | {| | ||
+ | | align="right" | <b>ASCII format :</b> || {{#var:n}}*{{#var:b}}^n+1 | ||
+ | |- | ||
| align="right" | <b>Base :</b> || {{{CuBase}}} | | align="right" | <b>Base :</b> || {{{CuBase}}} | ||
|- | |- | ||
| align="right" | <b>Count :</b> || {{#if:{{#pos:{{{CuRemarks|}}}|reuse}}|{{#arraydefine:L|{{{CuNlist}}}}}{{#arraysize:L}}|{{NVal list|{{{CuNlist}}}|count}}}} | | align="right" | <b>Count :</b> || {{#if:{{#pos:{{{CuRemarks|}}}|reuse}}|{{#arraydefine:L|{{{CuNlist}}}}}{{#arraysize:L}}|{{NVal list|{{{CuNlist}}}|count}}}} | ||
|- | |- | ||
− | | align="right" | <b>Max | + | | align="right" | <b>Max {{Vn}} :</b> || {{#if:{{{CuMultiRes|}}}|{{#if:{{{CuMaxn|}}}|{{Num|{{{CuMaxn}}}}} ({{Num|{{Multi Reservation:{{{CuMultiRes}}}-NMax}}}})|{{Num|{{Multi Reservation:{{{CuMultiRes}}}-NMax}}}}}}|{{#if:{{{CuMaxn|}}}|{{Num|{{{CuMaxn}}}}}|{{Alert|Attention!|Parameter CuMaxn not given!}}}}}} |
|- | |- | ||
− | | align="right" | <b>Date :</b> || {{{CuDate}}} | + | | align="right" | <b>Date :</b> || {{#if:{{{CuMultiRes|}}}|{{#if:{{{CuDate|}}}|{{{CuDate}}} ({{Multi Reservation:{{{CuMultiRes}}}-Date}})|{{Multi Reservation:{{{CuMultiRes}}}-Date}}}}|{{{CuDate}}}}} |
|- | |- | ||
− | {{#if:{{{CuReserved|}}}| | + | {{#if:{{{CuMultiRes|}}}|{{#vardefine:_res|{{Multi Reservation:{{{CuMultiRes}}}-Contributor}}}}|{{#if:{{{CuReserved|}}}|{{#vardefine:_res|{{{CuReserved}}}}}}}}}{{#if:{{#var:_res}}| |
− | + | {{!}} align="right" {{!}} <b>Reserved :</b> {{!}}{{!}} {{Contribs|{{#var:_res}}}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#arraydefine:u|{{#var:_res}}}}{{#loop:i | |
+ | | 0 | ||
+ | | {{#arraysize:u}} | ||
+ | | <span style="display:none">[[{{#arrayindex:u|{{#var:i}}}}/Reserved]]</span>}}}} | ||
}} | }} | ||
|} | |} | ||
− | + | | | |
− | | | ||
{| | {| | ||
| {{NVal list|{{{CuNlist}}}}} | | {{NVal list|{{{CuNlist}}}}} | ||
|} | |} | ||
− | |||
|}{{#if:{{{CuRemarks|}}}| | |}{{#if:{{{CuRemarks|}}}| | ||
{{{!}} | {{{!}} | ||
− | {{!}} <div height="120%" | + | {{!}} <div height="120%" class="color-PrimeTemplate"><b>Remarks : </b></div> {{!}}{{!}} {{{CuRemarks}}} |
{{!}}} | {{!}}} | ||
+ | }}{{#ifeq:{{NAMESPACENUMBER}}|0| | ||
+ | {{#if:{{{CuMultiRes|}}}|[[Category:{{Multi Reservation:{{{CuMultiRes}}}-Name}}|#.....{{padleft:{{{CuBase}}}|5|0}}]]}} | ||
}} | }} | ||
{{#if:{{#pos:{{{CuNlist}}}|:}}| | {{#if:{{#pos:{{{CuNlist}}}|:}}| | ||
==Notes== | ==Notes== | ||
<references />}}</includeonly> | <references />}}</includeonly> |
Latest revision as of 06:15, 25 October 2024
Description
Template "Cullen prime"
Displays current data for (Near/Generalized) Cullen primes, comments will be displayed as references at the bottom.
If there are no n values given, then the category Cullen prime without is also set.
Prototype
{{Cullen prime |CuBase= |CuMaxn= |CuDate= |CuReserved= |CuMultiRes= |CuNlist= |CuRemarks= }}
Example
{{Cullen prime |CuBase=4 |CuMaxn=1234 |CuDate=2019-04-26 |CuReserved=Karsten Bonath,test |CuMultiRes= |CuNlist= 1 5 33 193;C:test |CuRemarks=The {{OEIS|l|A007646}} }}
will generate
Current data
|
|
Remarks : |
The sequence A007646 in OEIS |
Notes
- ↑ test