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"
(cat. for Proth k=3k) |
(more param & checks) |
||
Line 3: | Line 3: | ||
Template Proth prime | Template Proth prime | ||
− | Display of current data for Proth primes, comments will be displayed as references at the bottom. | + | Display of current data for Proth primes {{Kbn|+|k|2|n}}, comments will be displayed as references at the bottom. |
==Prototype== | ==Prototype== | ||
Line 9: | Line 9: | ||
{{Proth prime | {{Proth prime | ||
|Pk= | |Pk= | ||
+ | |PCount= | ||
|PNash= | |PNash= | ||
|PMaxn= | |PMaxn= | ||
Line 16: | Line 17: | ||
|PNlist= | |PNlist= | ||
|PRemarks= | |PRemarks= | ||
+ | |PSieve= | ||
}} | }} | ||
</pre> | </pre> | ||
+ | |||
+ | ==Parameters== | ||
+ | *'''Pk:''' the {{Vk}}-value of {{Kbn|+|k|2|n}} | ||
+ | *'''PCount:''' the number of {{Vn}}-values given | ||
+ | : If no count is given, this will be automatically counted. If given and differs from automated value, a warning will be shown. | ||
+ | *'''PNash:''' the [[Nash weight]] | ||
+ | *'''PMaxn:''' highest {{Vn}}-value of continuous searched range (from {{Vn}}=1) | ||
+ | *'''PDate:''' last date of edit (mostly latest history entry) | ||
+ | *'''PReserved:''' person(s) who reserved this sequence (comma separated) | ||
+ | *'''PMultiRes:''' number of [[:Template:Multi Reservation]]: PMaxn and PDate will be taken from there | ||
+ | *'''PNlist:''' list of every {{Vn}}-value (one per row) with comments | ||
+ | *'''PRemarks:''' any helpful text or links for this sequence | ||
+ | *'''PSieve:''' if set a zip-file can be uploaded (filename is given then) if not available; if exists file is downloadable | ||
+ | |||
==Explanations== | ==Explanations== | ||
In case of the following conditions special categories will be set automatically: | In case of the following conditions special categories will be set automatically: | ||
− | * | + | *{{Vk}}-value is disvisible by 15 → category [[:Category:Proth k=15k value|Proth 15k]] is set |
− | * | + | *{{Vk}}-value is disvisible by 2145 → category [[:Category:Proth k=2145k value|Proth 2145k]] is set |
− | * | + | *{{Vk}}-value is disvisible by 2805 → category [[:Category:Proth k=2805k value|Proth 2805k]] is set |
*Nash-weight < 1000 → category [[:Category:Proth k=Low weight|Proth Low weight]] is set | *Nash-weight < 1000 → category [[:Category:Proth k=Low weight|Proth Low weight]] is set | ||
Line 37: | Line 53: | ||
{{Proth prime | {{Proth prime | ||
|Pk=15 | |Pk=15 | ||
+ | |PCount=4 | ||
|PNash=239 | |PNash=239 | ||
|PMaxn=20 | |PMaxn=20 | ||
Line 47: | Line 64: | ||
5;C:'''Example''' | 5;C:'''Example''' | ||
15;43912;C:with Top5000 entry | 15;43912;C:with Top5000 entry | ||
− | |PRemarks=For this | + | |PRemarks=For this {{Vk}}-value these are the [[Fermat prime]]s. |
+ | |PSieve=y | ||
}} | }} | ||
</pre> | </pre> | ||
Line 53: | Line 71: | ||
{{Proth prime | {{Proth prime | ||
|Pk=15 | |Pk=15 | ||
+ | |PCount=4 | ||
|PNash=239 | |PNash=239 | ||
|PMaxn=20 | |PMaxn=20 | ||
Line 63: | Line 82: | ||
5;C:'''Example''' | 5;C:'''Example''' | ||
15;43912;C:with Top5000 entry | 15;43912;C:with Top5000 entry | ||
− | |PRemarks=For this | + | |PRemarks=For this {{Vk}}-value these are the [[Fermat prime]]s. |
+ | |PSieve=y | ||
}} | }} | ||
− | [[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Proth primes of the form {{Kbn|+|{{#explode:{{PAGENAME}}||-1}}|2|n}}}}{{#if:{{{PMultiRes|}}}|{{ReservedM|{{{PMultiRes}}}}}|{{#if:{{{PReserved|}}}|{{Reserved|{{{PReserved}}}}}}}}}}} | + | [[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:Proth primes of the form {{Kbn|+|{{#explode:{{PAGENAME}}||-1}}|2|n}}}}{{#if:{{{PMultiRes|}}}|{{ReservedM|{{{PMultiRes}}}}}|{{#if:{{{PReserved|}}}|{{Reserved|{{{PReserved}}}}}}}}}}}<!-- |
+ | -->{{#if:{{{PCount|}}}||[[Category:Missing XCount]]}}<!-- | ||
+ | -->{{#vardefine:_cnt|{{NVal list|{{{PNlist}}}|count}}}}<!-- | ||
+ | -->{{#vardefine:_sir|0}}{{#ifeq:{{{PCount}}}|0|{{#ifeq:{{{PNash}}}|0|{{#ifeq:{{{PMaxn}}}|0|{{#vardefine:_sir|1}}}}}}}}{{#ifeq:{{NAMESPACENUMBER}}|10|{{#vardefine:_cnt|4}}}} | ||
==Current data== | ==Current data== | ||
{| class="primedata" | {| class="primedata" | ||
| class="primetemplate" | | | class="primetemplate" | | ||
{| | {| | ||
− | | align="right"| <b> | + | | align="right"| <b>{{Vk}}-value :</b> || {{{Pk}}}<!--{{#if:{{{CKSieve|}}}| ([[:File:{{PAGENAME}} sieve.zip|sieve]])|}}--> {{K-type|Proth|{{{Pk}}}}} |
|- | |- | ||
− | | align="right"| <b>Count :</b> || {{ | + | | align="right"| <b>Count :</b> || {{#if:{{{PCount|}}}|{{#ifeq:{{{PCount|}}}|{{#var:_cnt}}|{{{PCount}}}|{{Alert|Attention!|Parameter PCount={{{PCount}}} differs from counting={{#var:_cnt}}}}[[Category:Wrong XCount]]}}|{{Alert|Attention!|Parameter PCount={{#var:_cnt}} not given!}}}} |
|- | |- | ||
| align="right"| <b>Nash :</b> || {{{PNash}}} | | align="right"| <b>Nash :</b> || {{{PNash}}} | ||
|- | |- | ||
− | | align="right"| <b>Max | + | | align="right"| <b>Max {{Vn}} :</b> || {{#if:{{{PMultiRes|}}}|{{#if:{{{PMaxn|}}}|{{Num|{{{PMaxn}}}}} ({{Num|{{Multi Reservation:{{{PMultiRes}}}-NMax}}}})[[Category:Proth prime missing range|#.....{{padleft:{{{Pk}}}|5|0}}]]|{{Num|{{Multi Reservation:{{{PMultiRes}}}-NMax}}}}}}|{{#if:{{{PMaxn|}}}|{{Num|{{{PMaxn}}}}}|{{Alert|Attention!|Parameter PMaxn not given!}}}}}} |
|- | |- | ||
− | | align="right"| <b>Date :</b> || {{#if:{{{PMultiRes|}}}|{{Multi Reservation:{{{PMultiRes}}}-Date}}|{{{PDate}}}}} | + | | align="right"| <b>Date :</b> || {{#if:{{{PMultiRes|}}}|{{#if:{{{PDate|}}}|{{{PDate}}} ({{Multi Reservation:{{{PMultiRes}}}-Date}})|{{Multi Reservation:{{{PMultiRes}}}-Date}}}}|{{{PDate}}}}} |
|- | |- | ||
{{#if:{{{PMultiRes|}}}|{{#vardefine:_res|{{Multi Reservation:{{{PMultiRes}}}-Contributor}}}}|{{#if:{{{PReserved|}}}|{{#vardefine:_res|{{{PReserved}}}}}}}}}{{#if:{{#var:_res}}| | {{#if:{{{PMultiRes|}}}|{{#vardefine:_res|{{Multi Reservation:{{{PMultiRes}}}-Contributor}}}}|{{#if:{{{PReserved|}}}|{{#vardefine:_res|{{{PReserved}}}}}}}}}{{#if:{{#var:_res}}| | ||
− | {{!}} align="right" {{!}} <b>Reserved :</b> {{!}}{{!}} | + | {{!}} align="right" {{!}} <b>Reserved :</b> {{!}}{{!}} {{Contribs|{{#var:_res}}}}{{#ifeq:{{NAMESPACENUMBER}}|0|<span style="display:none">[[{{#var:_res}}/Reserved]]</span>}} |
}} | }} | ||
|} | |} | ||
− | | | + | | {{#ifeq:{{#var:_sir}}|1|style="background-color:SkyBlue;"}} | {{#ifeq:{{#var:_sir}}|1|No primes possible!}} |
{| | {| | ||
| {{NVal list|{{{PNlist}}}}} | | {{NVal list|{{{PNlist}}}}} | ||
Line 99: | Line 122: | ||
-->{{#ifexpr:{{{Pk}}} mod 2145||[[Category:Proth k=2145k value|#.....{{padleft:{{{Pk}}}|5|0}}]]}}<!-- | -->{{#ifexpr:{{{Pk}}} mod 2145||[[Category:Proth k=2145k value|#.....{{padleft:{{{Pk}}}|5|0}}]]}}<!-- | ||
-->{{#ifexpr:{{{Pk}}} mod 2805||[[Category:Proth k=2805k value|#.....{{padleft:{{{Pk}}}|5|0}}]]}}<!-- | -->{{#ifexpr:{{{Pk}}} mod 2805||[[Category:Proth k=2805k value|#.....{{padleft:{{{Pk}}}|5|0}}]]}}<!-- | ||
− | -->{{#ifexpr:{{{PNash}}}<1000|[[Category:Proth k=Low weight|#.....{{padleft:{{{Pk}}}|5|0}}]]}}<!-- | + | -->{{#if:{{{PCount|}}}|{{#ifeq:{{{PCount}}}|0|{{#ifeq:{{#var:_sir}}|0|[[Category:Zero PCount|#.....{{padleft:{{{Pk}}}|5|0}}]]}}}}}}<!-- |
+ | -->{{#ifexist:{{PAGENAME}}|{{#ifexpr:{{{Pk}}}<78557|{{#if:{{{PCount|}}}|{{#ifexpr:{{{PCount}}}>0|[[Category:Proth prime Sierpinski f{{Exponent interval|{{GNn|{{PAGENAME}}|1}}}}|#.....{{padleft:{{{Pk}}}|5|0}}]]}}}}}}}}<!-- | ||
+ | -->{{#ifexist:{{PAGENAME}}|{{#if:{{{PCount|}}}|{{#ifexpr:{{{PCount}}}>0|{{#ifexpr:{{GNn|{{PAGENAME}}|{{GP|{{PAGENAME}}|PCount}} }} > {{GP|{{PAGENAME}}|PMaxn}}|[[Category:Proth prime missing range|#.....{{padleft:{{{Pk}}}|5|0}}]]}}}}}}}}<!--Exp err | ||
+ | |||
+ | -->{{#ifeq:{{#var:_sir}}|0|{{#ifexpr:{{{PNash}}}<1000|[[Category:Proth k=Low weight|#.....{{padleft:{{{Pk}}}|5|0}}]]}}}}<!-- | ||
+ | -->{{#ifeq:{{#var:_sir}}|1|[[Category:Proth k=Sierpinski|#.....{{padleft:{{{Pk}}}|5|0}}]]}}<!-- | ||
+ | -->{{#if:{{{PCount|}}}|{{#ifexpr:{{{PCount}}}>99|[[Category:Proth count 100|#.....{{padleft:{{{Pk}}}|5|0}}]]}}}}<!-- | ||
+ | |||
-->[[Category:Proth prime|#.....{{padleft:{{{Pk}}}|5|0}}]]}}<!-- | -->[[Category:Proth prime|#.....{{padleft:{{{Pk}}}|5|0}}]]}}<!-- | ||
-->{{#if:{{{PMultiRes|}}}|[[Category:{{Multi Reservation:{{{PMultiRes}}}-Name}}|#.....{{padleft:{{{Pk}}}|5|0}}]]}} | -->{{#if:{{{PMultiRes|}}}|[[Category:{{Multi Reservation:{{{PMultiRes}}}-Name}}|#.....{{padleft:{{{Pk}}}|5|0}}]]}} |
Revision as of 08:16, 5 October 2020
Description
Template Proth prime
Display of current data for Proth primes k•2n+1, comments will be displayed as references at the bottom.
Prototype
{{Proth prime |Pk= |PCount= |PNash= |PMaxn= |PDate= |PReserved= |PMultiRes= |PNlist= |PRemarks= |PSieve= }}
Parameters
- Pk: the k-value of k•2n+1
- PCount: the number of n-values given
- If no count is given, this will be automatically counted. If given and differs from automated value, a warning will be shown.
- PNash: the Nash weight
- PMaxn: highest n-value of continuous searched range (from n=1)
- PDate: last date of edit (mostly latest history entry)
- PReserved: person(s) who reserved this sequence (comma separated)
- PMultiRes: number of Template:Multi Reservation: PMaxn and PDate will be taken from there
- PNlist: list of every n-value (one per row) with comments
- PRemarks: any helpful text or links for this sequence
- PSieve: if set a zip-file can be uploaded (filename is given then) if not available; if exists file is downloadable
Explanations
In case of the following conditions special categories will be set automatically:
- k-value is disvisible by 15 → category Proth 15k is set
- k-value is disvisible by 2145 → category Proth 2145k is set
- k-value is disvisible by 2805 → category Proth 2805k is set
- Nash-weight < 1000 → category Proth Low weight is set
The category Proth prime is set by default.
If "PMultiRes" is set, the parameters "PMaxn", "PDate" and "PReserved" (if given) will be ignored and replaced by the data from the Multi Reservation with ID given.
See also
Example
{{Proth prime |Pk=15 |PCount=4 |PNash=239 |PMaxn=20 |PDate=2019-03-01 |PReserved=Karsten Bonath |PMultiRes= |PNlist= 2;T:ST;C: Testtext 3;T:SW;C:[[Examples]] 5;C:'''Example''' 15;43912;C:with Top5000 entry |PRemarks=For this {{Vk}}-value these are the [[Fermat prime]]s. |PSieve=y }}
will create:
Current data
|
|
Remarks : |
For this k-value these are the Fermat primes. |
Notes
- ↑ Sophie Germain n=2, Twin n=2, Testtext
- ↑ Sophie Germain n=3, Woodall, Examples
- ↑ Example
- ↑ with Top5000 entry