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:Riesel prime"

From Prime-Wiki
Jump to: navigation, search
m
(cats. for no SG/twin)
Line 5: Line 5:
 
Display of current data for Riesel primes, comments will be displayed as references at the bottom.
 
Display of current data for Riesel primes, comments will be displayed as references at the bottom.
  
==Calling==
+
==Prototype==
 
<pre>
 
<pre>
 
{{Riesel prime
 
{{Riesel prime
Line 147: Line 147:
 
   -->{{#ifeq:{{#var:_ris}}|0|{{#ifexpr:{{{RNash}}}<1000|[[Category:Riesel k=Low weight|#.....{{padleft:{{{Rk}}}|5|0}}]]}}}}<!--
 
   -->{{#ifeq:{{#var:_ris}}|0|{{#ifexpr:{{{RNash}}}<1000|[[Category:Riesel k=Low weight|#.....{{padleft:{{{Rk}}}|5|0}}]]}}}}<!--
 
   -->{{#ifeq:{{#var:_ris}}|1|[[Category:Riesel k=Riesel|#.....{{padleft:{{{Rk}}}|5|0}}]]}}<!--
 
   -->{{#ifeq:{{#var:_ris}}|1|[[Category:Riesel k=Riesel|#.....{{padleft:{{{Rk}}}|5|0}}]]}}<!--
   -->{{#ifexpr:{{#var:_cnt}}>99|[[Category:Riesel count 100|#.....{{padleft:{{{Rk}}}|5|0}}]]}}<!--
+
   -->{{#if:{{{RCount|}}}|{{#ifexpr:{{{RCount}}}>99|[[Category:Riesel count 100|#.....{{padleft:{{{Rk}}}|5|0}}]]}}}}<!--
 
   -->{{#if:{{{RCount|}}}|{{#ifeq:{{{RCount}}}|0|{{#ifeq:{{#var:_ris}}|0|[[Category:Zero RCount|#.....{{padleft:{{{Rk}}}|5|0}}]]}}}}}}<!--
 
   -->{{#if:{{{RCount|}}}|{{#ifeq:{{{RCount}}}|0|{{#ifeq:{{#var:_ris}}|0|[[Category:Zero RCount|#.....{{padleft:{{{Rk}}}|5|0}}]]}}}}}}<!--
   -->{{#if:{{{RCount|}}}|{{#ifexpr:{{GNn|{{PAGENAME}}|{{GP|{{PAGENAME}}|RCount}} }} > {{GP|{{PAGENAME}}|RMaxn}}|[[Category:Riesel prime missing range|#.....{{padleft:{{{Rk}}}|5|0}}]]}}}}<!--
+
   -->{{#if:{{{RCount|}}}|{{#ifexpr:{{GNn|{{PAGENAME}}|{{GP|{{PAGENAME}}|RCount}} }} > {{GP|{{PAGENAME}}|RMaxn}}|[[Category:Riesel prime missing range|#.....{{padleft:{{{Rk}}}|5|0}}]]}}}}<!--Exp err
 +
  -->{{#ifexpr:{{{Rk}}} mod 3||{{#if:{{#pos:{{{RNlist}}}|T:S}}{{#pos:{{{RNlist}}}|T:CS}}||[[Category:Riesel prime without Sophie Germain|#.....{{padleft:{{{Rk}}}|5|0}}]]}}}}<!--
 +
  -->{{#ifexpr:{{{Rk}}} mod 3||{{#if:{{#pos:{{{RNlist}}}|T:T}}{{#pos:{{{RNlist}}}|T:CT}}{{#pos:{{{RNlist}}}|T:CST}}||[[Category:Riesel prime without twin|#.....{{padleft:{{{Rk}}}|5|0}}]]}}}}<!--
 
   -->{{#if:{{{RMultiRes|}}}|[[Category:{{Multi Reservation:{{{RMultiRes}}}-Name}}|#.....{{padleft:{{{Rk}}}|5|0}}]]}}<!--
 
   -->{{#if:{{{RMultiRes|}}}|[[Category:{{Multi Reservation:{{{RMultiRes}}}-Name}}|#.....{{padleft:{{{Rk}}}|5|0}}]]}}<!--
 
-->}}
 
-->}}

Revision as of 09:23, 19 June 2020

Description

Template Riesel prime

Display of current data for Riesel primes, comments will be displayed as references at the bottom.

Prototype

{{Riesel prime
|Rk=
|RCount=
|RNash=
|RMaxn=
|RDate=
|RReserved=
|RMultiRes=
|RNlist=
|RRemarks=
|RSieve=
}}

Parameters

  • Rk: the k-value of k•2n-1
  • RCount: 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.
  • RNash: the Nash weight
  • RMaxn: highest n-value of continuous searched range (from n=1)
  • RDate: last date of edit (mostly latest history entry)
  • RReserved: person(s) who reserved this sequence (comma separated)
  • RMultiRes: number of Template:Multi Reservation: RMaxn and RDate will be taken from there
  • RNlist: list of every n-value (one per row) with comments
  • RRemarks: any helpful text or links for this sequence
  • RSieve: if set a zip-file can be uploaded (filename is given then) if not available; if exists file it's downloadable

Categories set

In case of the following conditions special categories will be set automatically:

The category Riesel prime is set by default.

See also

Example

{{Riesel prime
|Rk=19
|RCount=8
|RNash=2390
|RMaxn=20
|RDate=2019-03-01
|RReserved=Karsten Bonath,Euclid
|RNlist=
2;T:S;C:'''[[M1]]''', Near Woodall: (1+1)*2^1-1, also (2-1)*2^2-1
3;T:SW;C:[[M2]], Woodall: 2*2^2-1
5;C:[[M3]], Near Woodall: (3+1)*2^3-1
7;C:[[M4]], Near Woodall: (5-1)*2^5-1
13;C:[[M5]]
17;C:[[M6]]
19;C:[[M7]], Near Woodall: (15+1)*2^15-1
4253;43912;C:[[M19]]
|RRemarks=For this ''k''-value theses are the [[Mersenne prime]]s.
|RSieve=y
}}

will create:

Current data

k , b : 19 , {{{Rb}}} Upload me!
Count : 8
Nash : 2390
Max n : 20
Date : 2019-03-01
Reserved : Karsten Bonath, Euclid
2[1], 3[2], 5[3], 7[4], 13[5], 17[6], 19[7], 4253[8]
Remarks :
For this k-value theses are the Mersenne primes.

Notes

  1. S.G. n=2, M1, Near Woodall: (1+1)*2^1-1, also (2-1)*2^2-1
  2. S.G. n=3, Woodall, M2, Woodall: 2*2^2-1
  3. M3, Near Woodall: (3+1)*2^3-1
  4. M4, Near Woodall: (5-1)*2^5-1
  5. M5
  6. M6
  7. M7, Near Woodall: (15+1)*2^15-1
  8. M19