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:Carol-Kynea prime dpl"

From Prime-Wiki
Jump to: navigation, search
(countings corr.)
(countings for power bases corrected)
Line 12: Line 12:
 
| align="right" {{!}} {{{CKMaxn}}}{{#if:{{{CKSieve|}}}|<br>([[:File:%PAGE% sieve.zip|sieve]])|}}
 
| align="right" {{!}} {{{CKMaxn}}}{{#if:{{{CKSieve|}}}|<br>([[:File:%PAGE% sieve.zip|sieve]])|}}
 
| align="center" {{!}} {{{CKDate}}} {{#if:{{{CKReserved|}}}|<br>[[:User:{{{CKReserved}}}|{{{CKReserved}}}]]}}
 
| align="center" {{!}} {{{CKDate}}} {{#if:{{{CKReserved|}}}|<br>[[:User:{{{CKReserved}}}|{{{CKReserved}}}]]}}
| '''C {{NVal list|{{{CKClist}}}|count}}''': {{NVal list|{{{CKClist}}}|short}}<hr>'''K {{NVal list|{{{CKKlist}}}|count}}''': {{NVal list|{{{CKKlist}}}|short}}</includeonly>
+
| '''C {{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CL|{{{CKClist}}}}}{{#arraysize:CL}}|{{NVal list|{{{CKClist}}}|count}}}}''': {{NVal list|{{{CKClist}}}|short}}<hr>'''K {{#if:{{#pos:{{{CKRemarks|}}}|Power}}|{{#arraydefine:CK|{{{CKKlist}}}}}{{#arraysize:CK}}|{{NVal list|{{{CKKlist}}}|count}}}}''': {{NVal list|{{{CKKlist}}}|short}}</includeonly>

Revision as of 14:12, 4 April 2019

Purpose

DPL statement to display one row in the table of Carol/Kynea primes

Explanations

  • if a base is reserved (CKReserved != "") then background is set green
  • if a base is a power of another (CKRemarks contains "Power") then background is set dark grey
  • counts of listed n-values is generated here