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:K-type"

From Prime-Wiki
Jump to: navigation, search
(calling+example)
(link to page instead of cat.)
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Purpose==
 
==Purpose==
Prints the type of a Riesel k-value with linked category.
+
Prints the type of a Riesel/Proth k-value with linked category.
  
 
==Definitions==
 
==Definitions==
*<div style="width:1.2em; text-align: center; background:Pink; display:inline-block;" title="15k">[[:Category:Riesel k=15k value|1]]</div>: 15k value (k is a multiple of 15)
+
*<div style="width:1.6em; text-align: center; background:HotPink; display:inline-block;" title="3k">3</div>: 3k value (k is a multiple of 3)
*<div style="width:1.2em; text-align: center; background:CornflowerBlue; display:inline-block;" title="2145k">[[:Category:Riesel k=2145k value|2]]</div>: 2145k value (k is a multiple of  2145)
+
*<div style="width:1.6em; text-align: center; background:Pink; display:inline-block;" title="15k">15</div>: 15k value (k is a multiple of 15)
*<div style="width:1.2em; text-align: center; background:GreenYellow; display:inline-block;" title="2805k">[[:Category:Riesel k=2805k value|8]]</div>: 2805k value (k is a multiple of 2805)
+
*<div style="width:2.6em; text-align: center; background:CornflowerBlue; display:inline-block;" title="2145k">2145</div>: 2145k value (k is a multiple of  2145)
*<div style="width:1.2em; text-align: center; background:Cyan; display:inline-block;" title="Low weight">[[:Category:Riesel k=Low weight|L]]</div>: Low Nash value (Nash < 1000)
+
*<div style="width:2.6em; text-align: center; background:GreenYellow; display:inline-block;" title="2805k">2805</div>: 2805k value (k is a multiple of 2805)
 +
*<div style="width:2.2em; text-align: center; background:Cyan; display:inline-block;" title="Low weight">Low</div>: Low Nash value ([[Nash weight]] < 1000)
 +
<!--*<div style="width:2.2em; text-align: center; background:Coral; display:inline-block;" title="Riesel number">Ris</div>: Riesel number (only on Riesel-side)-->
  
 
==Calling==
 
==Calling==
First unnamed parameter is the k-value.
+
*First unnamed parameter is the type: Riesel or Proth
 +
*Second parameter is the k-value
 
<pre>
 
<pre>
{{Riesel k-type|<k-value>}}
+
{{K-type|Riesel/Proth|<k-value>}}
 
</pre>
 
</pre>
  
 
==Example==
 
==Example==
 
<pre>
 
<pre>
{{Riesel k-type|8415}}
+
{{K-type|Riesel|8415}}
 
</pre>
 
</pre>
 
will produce
 
will produce
:{{Riesel k-type|8415}}
+
:{{K-type|Riesel|8415}}
because k=8415 is a multiple of 15 and 2805.
+
because k=8415 is a multiple of 3, 15 and 2805.
[[Category:Templates]]
+
[[Category:Prime collections]]
</noinclude><includeonly>{{#ifexpr:{{{1}}} mod 15||<div style="width:1.2em; text-align: center; background:Pink; display:inline-block;" title="15k">[[:Category:Riesel k=15k value|1]]</div>}}<!--
+
</noinclude><includeonly><div style="white-space:nowrap">{{#ifexpr:{{{2}}} mod 3||<div style="width:1.6em; text-align: center; background:HotPink; display:inline-block;" title="3k">[[{{{1}}} k=3k value|3]]</div>}}<!--
-->{{#ifexpr:{{{1}}} mod 2145||<div style="width:1.2em; text-align: center; background:CornflowerBlue; display:inline-block;" title="2145k">[[:Category:Riesel k=2145k value|2]]</div>}}<!--
+
-->{{#ifexpr:{{{2}}} mod 15||<div style="width:1.6em; text-align: center; background:Pink; display:inline-block;" title="15k">[[{{{1}}} k=15k value|15]]</div>}}<!--
-->{{#ifexpr:{{{1}}} mod 2805||<div style="width:1.2em; text-align: center; background:GreenYellow; display:inline-block;" title="2805k">[[:Category:Riesel k=2805k value|8]]</div>}}<!--
+
-->{{#ifexpr:{{{2}}} mod 2145||<div style="width:2.6em; text-align: center; background:CornflowerBlue; display:inline-block;" title="2145k">[[{{{1}}} k=2145k value|2145]]</div>}}<!--
-->{{#ifexist:Riesel prime {{{1}}}|{{#ifexpr:{{#dpl:title=Riesel prime {{{1}}}|skipthispage=no|include={Riesel prime}:RNash}}<1000|<div style="width:1.2em; text-align: center; background:Cyan; display:inline-block;" title="Low weight">[[:Category:Riesel k=Low weight|L]]</div>|}}|}}</includeonly>
+
-->{{#ifexpr:{{{2}}} mod 2805||<div style="width:2.6em; text-align: center; background:GreenYellow; display:inline-block;" title="2805k">[[{{{1}}} k=2805k value|2805]]</div>}}<!--
 +
--><!--{{#if:{{#pos:{{#dpl:title=Riesel prime {{{2}}}|skipthispage=no|include={Riesel prime}:RRemarks}}|Riesel}}|<div style="width:2.2em; text-align: center; background:Coral; display:inline-block;" title="Riesel">[[:Category:Riesel k=Riesel|Ris]]</div>}}--><!--
 +
{{#ifexist:{{{1}}} prime {{{2}}}|{{#ifexpr:{{#dpl:title={{{1}}} prime {{{2}}}|skipthispage=no|include={ {{{1}}} prime}:{{#sub:{{{1}}}|0|1}}Nash}}<1000|<div style="width:2.2em; text-align: center; background:Cyan; display:inline-block;" title="Low weight">[[{{{1}}} k=Low weight|L]]</div>|}}|}}
 +
-->{{#if:{{GP|{{{1}}} prime {{{2}}}|RNash}}|{{#ifexpr:{{#dpl:title={{{1}}} prime {{{2}}}|skipthispage=no|include={ {{{1}}} prime}:{{#sub:{{{1}}}|0|1}}Nash}}<1000|<div style="width:2.2em; text-align: center; background:Cyan; display:inline-block;" title="Low weight">[[{{{1}}} k=Low weight|Low]]</div>|}}|}}</div></includeonly>

Revision as of 12:25, 27 July 2020

Purpose

Prints the type of a Riesel/Proth k-value with linked category.

Definitions

  • 3
    : 3k value (k is a multiple of 3)
  • 15
    : 15k value (k is a multiple of 15)
  • 2145
    : 2145k value (k is a multiple of 2145)
  • 2805
    : 2805k value (k is a multiple of 2805)
  • Low
    : Low Nash value (Nash weight < 1000)

Calling

  • First unnamed parameter is the type: Riesel or Proth
  • Second parameter is the k-value
{{K-type|Riesel/Proth|<k-value>}}

Example

{{K-type|Riesel|8415}}

will produce

3152805

because k=8415 is a multiple of 3, 15 and 2805.