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:Near Gen. Cullen-Woodall prime"

From Prime-Wiki
Jump to: navigation, search
m
(notoc)
Line 72: Line 72:
 
|NGCWSieve=
 
|NGCWSieve=
 
}}
 
}}
[[Category:Prime collections]]</noinclude><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|<!--
+
[[Category:Prime collections]]</noinclude><includeonly>__NOTOC__{{#ifeq:{{NAMESPACENUMBER}}|0|<!--
 
-->{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Near Gen. Cullen/Woodall primes of the form (n±1)•{{#var:b}}<sup>n</sup>±1}}<!--
 
-->{{#vardefine:b|{{#explode:{{PAGENAME}}||-1}}}}{{DISPLAYTITLE:Near Gen. Cullen/Woodall primes of the form (n±1)•{{#var:b}}<sup>n</sup>±1}}<!--
 
-->{{#if:{{{NGCWCMlist|}}}||[[Category:Near Gen. Cullen without|#.....{{padleft:{{#var:b}}|5}}]]}}<!--
 
-->{{#if:{{{NGCWCMlist|}}}||[[Category:Near Gen. Cullen without|#.....{{padleft:{{#var:b}}|5}}]]}}<!--

Revision as of 07:56, 7 May 2019

Description

Template Near Gen. Cullen-Woodall prime

Display of current data for Near Gen. Cullen-Woodall primes.

Notes:

The page title is displayed with the formula.
The category Near Gen. Cullen-Woodall prime is set.
If no Near Gen. Cullen primes are given, the page is categorized into Near Gen. Cullen without.
If no Near Gen. Woodall primes are given, the page is categorized into Near Gen. Woodall without.
If no primes are given at all, the page is categorized into Near Gen. Cullen-Woodall without.

Calling

{{Near Gen. Cullen-Woodall prime
|NGCWBase=
|NGCWMaxn=
|NGCWDate=
|NGCWReserved=
|NGCWWMlist=
|NGCWWPlist=
|NGCWCMlist=
|NGCWCPlist=
|NGCWRemarks=
|NGCWSieve=
}}

Example

{{Near Gen. Cullen-Woodall prime
|NGCWBase=2
|NGCWMaxn=10000
|NGCWDate=2019-05-01
|NGCWReserved=Karsten Bonath
|NGCWWMlist=
1
2
5
13
|NGCWWPlist=
30
100;C:Test
|NGCWCPlist=
1
2
3;345789
|NGCWRemarks=
|NGCWSieve=
}}

will create:

Current data

Base : 2
Max n : 10,000
Date : 2019-05-01
Reserved : Karsten Bonath
W- 04 : 1, 2, 5, 13
W+ 02 : 30, 100[1]
C- 00 :
C+ 03 : 1, 2, 3

Notes

  1. Test