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:Proth prime const"

From Prime-Wiki
Jump to: navigation, search
(new)
 
(ASCII-k)
 
Line 42: Line 42:
 
|PcRemarks=A comment
 
|PcRemarks=A comment
 
}}
 
}}
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{#vardefine:n|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Proth primes of the form {{Kbn|+|k|2|{{#var:n}}|{{#explode:{{PAGENAME}}||-1}}}}}}{{#if:{{{PcReserved|}}}|{{Reserved|{{{PcReserved}}}}}}}}}
+
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{#vardefine:n|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Proth primes of the form {{Kbn|+|k|2|{{#var:n}}|{{#explode:{{PAGENAME}}||-1}}}}}}{{#if:{{{PcReserved|}}}|{{Reserved|{{{PcReserved}}}}}}}}}{{#ifeq:{{NAMESPACENUMBER}}|10|{{#vardefine:n|505000}}}}
 
==Current data==
 
==Current data==
 
{| class="primedata"
 
{| class="primedata"
 
| class="primetemplate color-PrimeTemplate" |
 
| class="primetemplate color-PrimeTemplate" |
 
  {|
 
  {|
   | align="right" | <b>ASCII format :</b> || {{Vk}}*2^{{#var:n}}+1
+
   | align="right" | <b>ASCII format :</b> || k*2^{{#var:n}}+1
 
   |-
 
   |-
 
   | align="right"| <b>n-value :</b> || {{{Pcn}}}
 
   | align="right"| <b>n-value :</b> || {{{Pcn}}}

Latest revision as of 08:49, 8 May 2025

Description

Template "Proth prime const"

Display of current data for Proth primes with a fixed n, comments will be displayed as references at the bottom.

Calling

{{Proth prime const
|Pcn=
|PcMaxk=
|PcDate=
|PcReserved=
|PcKlist=
|PcRemarks=
}}

The category Proth prime const is set by default.

Example

{{Proth prime const
|Pcn=505000
|PcMaxk=100000
|PcDate=2025-01-01
|PcReserved=Karsten Bonath
|PcKlist=
123;C:Test
|PcRemarks=A comment
}}

will create

Current data

ASCII format : k*2^505000+1
n-value : 505000
Count : 1
Max k : 100000
Date : 2025-01-01
Reserved : Karsten Bonath
123[1]
Remarks :
A comment

Notes

  1. Test