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

Template:K-type

From Prime-Wiki
Revision as of 08:39, 30 May 2024 by Karbon (talk | contribs) (prepared for other bases, templ. GP needs update)
Jump to: navigation, search

Purpose

Prints the type of a Riesel/Proth k-value with linked category.

Definitions

  • 3
    : 3k value (k is a multiple of 3)
  • 15
    : 15k value (k is a multiple of 15)
  • 2145
    : 2145k value (k is a multiple of 2145)
  • 2805
    : 2805k value (k is a multiple of 2805)
  • Low
    : Low Nash value (Nash weight < 1000)

Calling

  • First unnamed parameter is the type: Riesel or Proth
  • Second parameter is the k-value
  • Third parameter is the base, if not given base=2 is taken
{{K-type|Riesel/Proth|<k-value>|[<base>]}}

Examples

{{K-type|Riesel|36465}} will produce 31521452805 because k=36465 is a multiple of 3, 15, 2145, and 2805.
{{K-type|Riesel|43}} will produce Low because k=43 is low weight.
{{K-type|Riesel|4906|5}} will produce because of low weight=.