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"

From Prime-Wiki
Jump to: navigation, search
m
(cat. Gen. -> Gen)
Line 3: Line 3:
 
Template "Cullen prime"
 
Template "Cullen prime"
  
Displays current data for [[Gen. Cullen prime|Generalized Cullen primes]], comments will be displayed as references at the bottom.
+
Displays current data for [[Gen Cullen prime|Generalized Cullen primes]], comments will be displayed as references at the bottom.
  
By default, the category [[:Category:Gen. Cullen prime|Gen. Cullen prime]] is set.
+
By default, the category [[:Category:Gen Cullen prime|Gen Cullen prime]] is set.
  
If there are no n values given, then the category [[:Category:Gen. Cullen prime without|Gen. Cullen prime without]] is also set.
+
If there are no {{Vn}} values given, then the category [[:Category:Gen Cullen prime without|Gen Cullen prime without]] is also set.
  
 
==Prototype==
 
==Prototype==
Line 28: Line 28:
 
|CuMaxn=1234
 
|CuMaxn=1234
 
|CuDate=2019-04-26
 
|CuDate=2019-04-26
|CuReserved=Dylan Delgado
+
|CuReserved=Karsten Bonath,test
 
|CuMultiRes=
 
|CuMultiRes=
 
|CuNlist=
 
|CuNlist=
Line 44: Line 44:
 
|CuMaxn=1234
 
|CuMaxn=1234
 
|CuDate=2019-04-26
 
|CuDate=2019-04-26
|CuReserved=Dylan Delgado,test
+
|CuReserved=Karsten Bonath,test
 
|CuMultiRes=
 
|CuMultiRes=
 
|CuNlist=
 
|CuNlist=
Line 53: Line 53:
 
|CuRemarks=The {{OEIS|l|A007646}}
 
|CuRemarks=The {{OEIS|l|A007646}}
 
}}
 
}}
[[Category:Prime collections]]
+
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Generalized Cullen primes of the form {{Kbn|+|n|{{#explode:{{PAGENAME}}||-1}}|n}}}}[[Category:Gen Cullen prime|#.....{{padleft:{{#explode:{{PAGENAME}}||1}}|5}}]]{{#if:{{{CuNlist|}}}||[[Category:Gen Cullen prime without|#.....{{padleft:{{#explode:{{PAGENAME}}||1}}|5}}]]}}{{#if:{{{CuMultiRes|}}}|{{ReservedM|{{{CuMultiRes}}}}}|{{#if:{{{CuReserved|}}}|{{Reserved|{{{CuReserved}}}}}}}}}}}
</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Generalized Cullen primes of the form {{Kbn|+|n|{{#explode:{{PAGENAME}}||-1}}|n}}}}[[Category:Gen. Cullen prime|#.....{{padleft:{{#explode:{{PAGENAME}}||1}}|5}}]]{{#if:{{{CuNlist|}}}||[[Category:Gen. Cullen prime without|#.....{{padleft:{{#explode:{{PAGENAME}}||1}}|5}}]]}}{{#if:{{{CuMultiRes|}}}|{{ReservedM|{{{CuMultiRes}}}}}|{{#if:{{{CuReserved|}}}|{{Reserved|{{{CuReserved}}}}}}}}}}}
 
 
==Current data==
 
==Current data==
 
{| class="primedata"
 
{| class="primedata"
Line 63: Line 62:
 
   | 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&nbsp;<i>n</i> :</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>Max&nbsp;{{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> || {{#if:{{{CuMultiRes|}}}|{{#if:{{{CuDate|}}}|{{{CuDate}}} ({{Multi Reservation:{{{CuMultiRes}}}-Date}})|{{Multi Reservation:{{{CuMultiRes}}}-Date}}}}|{{{CuDate}}}}}
 
   | align="right" | <b>Date :</b> || {{#if:{{{CuMultiRes|}}}|{{#if:{{{CuDate|}}}|{{{CuDate}}} ({{Multi Reservation:{{{CuMultiRes}}}-Date}})|{{Multi Reservation:{{{CuMultiRes}}}-Date}}}}|{{{CuDate}}}}}

Revision as of 10:16, 2 November 2020

Description

Template "Cullen prime"

Displays current data for Generalized Cullen primes, comments will be displayed as references at the bottom.

By default, the category Gen Cullen prime is set.

If there are no n values given, then the category Gen 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

Base : 4
Count : 4
Max n : 1,234
Date : 2019-04-26
Reserved : Karsten Bonath, test
1, 5, 33, 193[1]
Remarks :
The sequence A007646 in OEIS

Notes

  1. test