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

From Prime-Wiki
Jump to: navigation, search
(class)
(no "Gen")
Line 3: Line 3:
 
Template "Cullen prime"
 
Template "Cullen prime"
  
Displays current data for [[:category:Cullen prime|(Near/Generalized) Cullen primes]], comments will be displayed as references at the bottom.
+
Displays current data for [[:Category:Cullen prime|(Near/Generalized) Cullen primes]], comments will be displayed as references at the bottom.
  
If there are no {{Vn}} values given, then the category [[:Category:Gen Cullen prime without|Gen Cullen prime without]] is also set.
+
If there are no {{Vn}} values given, then the category [[:Category:Cullen prime without|Cullen prime without]] is also set.
  
 
==Prototype==
 
==Prototype==
Line 54: Line 54:
 
|P={{#vardefine:s| P}}{{#vardefine:n|(n+1)}}{{#vardefine:p|Near }}
 
|P={{#vardefine:s| P}}{{#vardefine:n|(n+1)}}{{#vardefine:p|Near }}
 
|M={{#vardefine:s| M}}{{#vardefine:n|(n-1)}}{{#vardefine:p|Near }}
 
|M={{#vardefine:s| M}}{{#vardefine:n|(n-1)}}{{#vardefine:p|Near }}
|#default={{#vardefine:s|}}{{#vardefine:n|n}}{{#vardefine:p|}}}}{{DISPLAYTITLE:{{#var:p}}Generalized Cullen primes of the form {{Kbn|+|{{#var:n}}|{{#var:b}}|n}}}}[[Category:Gen Cullen prime{{#var:s}}|#.....{{padleft:{{#var:b}}|5}}]]{{#if:{{{CuNlist|}}}||[[Category:Gen Cullen prime{{#var:s}} without|#.....{{padleft:{{#var:b}}|5}}]]}}}}
+
|#default={{#vardefine:s|}}{{#vardefine:n|n}}{{#vardefine:p|}}}}{{DISPLAYTITLE:{{#var:p}}Generalized Cullen primes of the form {{Kbn|+|{{#var:n}}|{{#var:b}}|n}}}}[[Category:Cullen prime{{#var:s}}|#.....{{padleft:{{#var:b}}|5}}]]{{#if:{{{CuNlist|}}}||[[Category:Cullen prime{{#var:s}} without|#.....{{padleft:{{#var:b}}|5}}]]}}}}
 
==Current data==
 
==Current data==
 
{| class="primedata"
 
{| class="primedata"

Revision as of 17:17, 31 August 2021

Description

Template "Cullen prime"

Displays current data for (Near/Generalized) Cullen primes, comments will be displayed as references at the bottom.

If there are no n values given, then the category Cullen prime without is also set.

Prototype

{{Cullen prime
|CuBase=
|CuMaxn=
|CuDate=
|CuReserved=
|CuMultiRes=
|CuNlist=
|CuRemarks=
}}

Example

{{Cullen prime
|CuBase=4
|CuMaxn=1234
|CuDate=2019-04-26
|CuReserved=Karsten Bonath,test
|CuMultiRes=
|CuNlist=
1
5
33
193;C:test
|CuRemarks=The {{OEIS|l|A007646}}
}}

will generate

Current data

ASCII format : n*4^n+1
Base : 4
Count : 4
Max n : 1,234
Date : 2019-04-26
Reserved : Karsten Bonath, test
1, 5, 33, 193[1]
Remarks :
The sequence A007646 in OEIS

Notes

  1. test