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 "Main Page"

From Prime-Wiki
Jump to: navigation, search
(graphs examples)
m
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Languages}}
 
{{Languages}}
<div style="font-size:150%;">Here is a Wiki for primes and related topics, still under <span style="color:red;">construction</span>.</div><br>
+
__NOTOC__
 
+
<div style="font-size:150%;">'''PrimeWiki''' is a revival of the terminated '''[[Mersennewiki]]''' for primes, prime searching, prime finding programs and related topics, still under <span style="color:red;">construction</span>.</div>
{{Box|hide=true|title=Examples in math (LaTeX) notation|content=
+
(Some examples of extension handling with math notation, images, files, graphs can be found [[Examples|here]].)
<pre><math>N \supset \mathbb P = \{ p_n \mid n \in N \}</math></pre>
+
<br>
:<math>N \supset \mathbb P = \{ p_n \mid n \in N \}</math>
+
<div style="position:relative; height:500px; width:900px; margin-left:10%; text-align:center; vertical-align:middle">
 
+
  <div style="position:absolute; width:480px; left:23%">https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Blank_globe.svg/480px-Blank_globe.svg.png</div>
<pre><math>\sideset{_1^2}{_3^4}\prod_a^b</math></pre>
+
  <div style="position:absolute; width:150px; top:3%; left:12%; font-size:150%">'''[[:Category:Projects|Projects]]'''</div>
:<math>\sideset{_1^2}{_3^4}\prod_a^b</math>
+
  <div style="position:absolute; width:150px; top:3%; right:12%; font-size:150%">'''[[:Category:Help|Help]]'''</div>
 
+
  <div style="position:absolute; width:150px; top:22%; left:7%; font-size:150%">'''[[:Category:Persons|Persons]]'''</div>
<pre><math>\iiiint\limits_{F} \, dx\,dy\,dz\,dt</math></pre>
+
  <div style="position:absolute; width:150px; top:22%; right:7%; font-size:150%">'''[[:Category:Math|Math]]'''</div>
:<math>\iiiint\limits_{F} \, dx\,dy\,dz\,dt</math>
+
   <div style="position:absolute; width:150px; top:47%; left:3%; font-size:150%">'''[[:Category:Primes|Primes]]'''</div>
 
+
  <div style="position:absolute; width:150px; top:47%; right:3%; font-size:150%">'''[[GIMPS]]'''</div>
<pre><math>f(n) =
+
  <div style="position:absolute; width:150px; top:70%; left:7%; font-size:150%">'''[[:Category:Software|Software]]'''</div>
\begin{cases}
+
  <div style="position:absolute; width:150px; top:70%; right:7%; font-size:150%">'''[https://www.mersenneforum.org/index.php Forum]'''</div>
  n/2, & \mbox{if }n\mbox{ is even} \\
+
  <div style="position:absolute; width:150px; top:90%; left:12%; font-size:150%">'''[[:Category:Hardware|Hardware]]'''</div>
  3n+1, & \mbox{if }n\mbox{ is odd}
+
  <div style="position:absolute; width:150px; top:90%; right:12%; font-size:150%">'''[[Help:Category Tree|Categories]]'''</div>
\end{cases}</math></pre>
+
  <div style="position:absolute; width:350px; top:32%; left:31%; font-size:300%; cursor:default">'''{{C|red|World record}}'''<br>{{Greatest Mersenne Prime|pure}}</div>
:<math>f(n) =  
+
  <div style="position:absolute; width:100px; top:20%; left:30%; font-size:150%; cursor:default">'''HP49'''</div>
\begin{cases}
+
  <div style="position:absolute; width:100px; top:20%; right:30%; font-size:150%; cursor:default">'''ALQ'''</div>
  n/2,  & \mbox{if }n\mbox{ is even} \\
+
  <div style="position:absolute; width:100px; top:15%; left:45%; font-size:150%; cursor:default">'''GMP'''</div>
   3n+1, & \mbox{if }n\mbox{ is odd}
+
  <div style="position:absolute; width:100px; top:65%; left:30%; font-size:150%; cursor:default">'''ECM'''</div>
\end{cases}</math>
+
  <div style="position:absolute; width:100px; top:65%; right:30%; font-size:150%; cursor:default">'''LLR'''</div>
 
+
  <div style="position:absolute; width:100px; top:75%; right:45%; font-size:150%; cursor:default">'''PRP'''</div>
<pre><math>\sum_{i=1}^\infty \frac{1}{p_i} = \frac{1}{2} + \frac{1}{3} + \frac{1}{5} + \frac{1}{7} + \frac{1}{11} + \dotsb = \infty</math></pre>
+
</div>
:<math>\sum_{i=1}^\infty \frac{1}{p_i} = \frac{1}{2} + \frac{1}{3} + \frac{1}{5} + \frac{1}{7} + \frac{1}{11} + \dotsb = \infty</math>
+
{| style="width:100%; background:Gainsboro; margin:1.2em 0 6px 0; border:1px solid #ddd;"
 
+
| This Wiki made up of '''{{Num|{{formatnum:{{NUMBEROFPAGES}}|R}}}} pages''' with '''{{Num|{{formatnum:{{NUMBEROFARTICLES}}|R}}}} articles''' and '''{{Num|{{formatnum:{{NUMBEROFFILES}}|R}}}} files''' done by '''{{#expr:{{NUMBEROFUSERS}}+{{NUMBEROFADMINS}}}} users''' in '''{{Num|{{formatnum:{{NUMBEROFEDITS}}|R}}}} edits'''.
<pre><math>\pi(1)=0\ ;\ \pi(10) = 4\ ;\ \pi(100) = 25\ ;\ \pi(1000) = 168; \ \pi(1000000)=78498</math></pre>
+
|}
:<math>\pi(1)=0\ ;\ \pi(10) = 4\ ;\ \pi(100) = 25\ ;\ \pi(1000) = 168; \ \pi(1000000)=78498</math>
 
}}
 
 
 
{{Box|hide=true|title=Example of page categorizations|content=<categorytree mode=categories depth="5" showcount="on">!TopLevel</categorytree>}}
 
 
 
{{Box|hide=true|title=Example of prime sequence and reservation|content=[[Williams primes base 5]]}}
 
 
 
{{Box|hide=true|title=Configuration tests: external links open in new browser tab/window|content=
 
*[https://www.rieselprime.de/default.htm Riesel and Proth Prime Databse RPPDb]
 
*[https://www.mersenneforum.org/index.php MersenneForum.org]
 
*[http://factordb.com/ FactorDB]
 
}}
 
 
 
{{Box|hide=true|title=Examples of template usage and data table generating|content=
 
The <b>[[:Category:Carol-Kynea_primes|category]]</b> for Carol/Kynea primes holds 3 example pages for some bases (2, 6 and 10).
 
 
 
These pages hold their data in the template <b>[[:Template:CarolKyneaBase|CarolKyneaBase]]</b> using named parameters.
 
 
 
The parameters can be used to create automatically a <b>[[Carol-Kynea_table|table]]</b> of those pages.
 
 
 
}}
 
 
 
{{Box|hide=true|title=Examples for including PDF documents|content=
 
<pdf width="320" height="480">File:First PDF.pdf</pdf>
 
 
 
*Show document starting at page 3 and different sizings:
 
<pdf page="3" width="500" height="800">File:First PDF.pdf</pdf>
 
}}
 
 
 
{{Box|hide=true|title=Example for fetching data from RieselPrime database|content=
 
The data are collected from the internal SQL database by [https://www.mediawiki.org/wiki/Extension:External_Data Extension:External Data]:
 
* table: RieselPrime
 
* field: rieselk_id = 4 (-> "1" = Mersenne primes)
 
* fields collected: n, comment, utm (prime index n, comment like "Woodall", utm: id of Top5000 page)
 
 
 
Functioning but still complicated: no parser/string functions allowed in "#for_external_table" statement, therefore using variables.
 
{{#get_db_data:db=RPPDB
 
|from=RieselPrime
 
|where=rieselk_id=4
 
|order by=n ASC
 
|data=nval=n,rem=comment,T5000=utm
 
}}
 
Mersenne primes <math>2^n-1</math>, prime for ''n'':<br/>
 
:{{#vardefine:liste|{{#for_external_table:<nowiki/>{{{nval}}},}}}}<!--
 
-->{{#vardefine:T5s|{{#for_external_table:<nowiki/>{{{T5000}}},}}}}<!--
 
-->{{#vardefine:rems|{{#for_external_table:<nowiki/>{{{rem}}},}}}}<!--
 
-->{{#loop:idx|0|48|{{#vardefine:nr|{{#explode:{{#var:liste}}|,|{{#var:idx}}}}}}<!--
 
-->{{#vardefine:T5id|{{#explode:{{#var:T5s}}|,|{{#var:idx}}}}}}<!--
 
-->{{#vardefine:r|{{#explode:{{#var:rems}}|,|{{#var:idx}}}}}}<!--
 
-->{{#if:{{#var:T5id}}|{{T5000|{{#var:T5id}}|{{#var:nr}}}}|{{#var:nr}}}}<!--
 
-->{{#if:{{#var:r}}|<span style="color:red;" title="{{#var:r}}">'''*'''</span>}},<nowiki> </nowiki><!--
 
-->}}
 
 
 
}}
 
 
 
{{Box|hide=true|title=Examples for showing images of external pages|content=
 
Images from external sources have to be put as full link on a page.
 
==Images from Commons Wikimedia==
 
{{{!}}
 
{{!}} https://upload.wikimedia.org/wikipedia/commons/3/30/MarinMersenne.jpg
 
{{!}}-
 
{{!}} [https://commons.wikimedia.org/wiki/Category:Marin_Mersenne Marin Mersenne]
 
{{!}}}
 
 
 
{{{!}}
 
{{!}} https://upload.wikimedia.org/wikipedia/commons/4/49/GIMPS_logo.png
 
{{!}}-
 
{{!}} [https://commons.wikimedia.org/wiki/File:GIMPS_logo.png GIMPS logo]
 
{{!}}}
 
 
 
==Image from Wikipedia==
 
Images can only be diplayed in available sizes, no resize possible.
 
{{{!}}
 
{{!}} https://upload.wikimedia.org/wikipedia/commons/3/34/Marin_mersenne.jpg
 
{{!}}-
 
{{!}} [https://commons.wikimedia.org/wiki/File:Marin_mersenne.jpg Image from Wikpedia]
 
{{!}}}
 
}}
 
 
 
{{Box|hide=false|title=Example for SVG support|content=
 
Test file, original size 580x400 pixel:
 
[[File:Test.svg]]
 
 
 
Test file,size 80 pixel in width:
 
[[File:Test.svg|80px]]
 
 
 
Clicking on the image will lead to the saved file.
 
}}
 
 
 
{{Box|hide=false|title=Examples for graphs from CSV file|content=
 
Display with parser function:
 
<chart legend_title="Mersenne primes" x_type="no" x_title="&nbsp;" x_unit="No." y_type="no" y_title="&nbsp;" y_unit="n value">Mersenne.csv</chart>
 
 
 
Display with image handler:
 
[[File:Mersenne.csv|legend_title=Mersenne primes,x_type=no,x_title=&nbsp;,x_unit=No.,y_type=no,y_title=&nbsp;,y_unit=n value]]
 
}}
 
 
 
{{Box|hide=false|title=Examples for graphs extension|content=
 
Using template [[:Template:PieChart|PieChart]]:
 
{{PieChart|legend=Fruits|radius=125|values= [
 
      {"x": "Peaches","y": 100},
 
      {"x": "Plums","y": 32},
 
      {"x": "Blueberries","y": 80},
 
      {"x": "Strawberries","y": 46},
 
      {"x": "Bananas","y": 41}
 
    ]
 
}}
 
{{PieChart|legend=Fruits|radius=125|rangeliteral= ["red", "green","red","green","red","green","red","green","red","green"] |values= [
 
      {"x": "perziken","y": 10},
 
      {"x": "pruimen","y": 10},
 
      {"x": "bessen","y": 10},
 
      {"x": "aardbeien","y": 10},
 
      {"x": "bananen","y": 10},
 
      {"x": "peach","y": 10},
 
      {"x": "plum","y": 10},
 
      {"x": "blueberries","y": 10},
 
      {"x": "strawberries","y": 10},
 
      {"x": "bananas","y": 10}
 
    ]
 
}}
 
 
 
Using <nowiki><graph></nowiki>-tag directly:
 
<graph>{
 
  "version": 2,
 
  "height": 160,
 
  "width": 160,
 
  "legends": [{"title": "Fruits","fill": "color"}],
 
  "padding": "auto",
 
  "data": [
 
    {
 
      "name": "table",
 
      "values": [
 
        {"x": "peach","y": 100,"z": 2},
 
        {"x": "plums","y": 32,"z": 4},
 
        {"x": "bluebe","y": 180,"z": 3},
 
        {"x": "strawb","y": 46,"z": 7},
 
        {"x": "banan","y": 21,"z": 5}
 
      ]
 
    }
 
  ],
 
  "scales": [
 
    {
 
      "name": "color",
 
      "range": "category20",
 
      "domain": {"data": "table","field": "x"},
 
      "type": "ordinal"
 
    }
 
  ],
 
  "marks": [
 
    {
 
      "type": "arc",
 
      "from": {
 
        "data": "table",
 
        "transform": [{"field": "y","type": "pie"}]
 
      },
 
      "properties": {
 
        "enter": {
 
          "innerRadius": {"value": 100},
 
          "stroke": {"value": "white"},
 
          "startAngle": {"field": "layout_start"},
 
          "outerRadius": {"value": 150},
 
          "endAngle": {"field": "layout_end"},
 
          "fill": {"field": "x","scale": "color"}
 
        }
 
      }
 
    },
 
    {
 
      "type": "arc",
 
      "from": {
 
        "data": "table",
 
        "transform": [{"field": "z","type": "pie"}]
 
      },
 
      "properties": {
 
        "enter": {
 
          "innerRadius": {"value": 40},
 
          "stroke": {"value": "white"},
 
          "startAngle": {"field": "layout_start"},
 
          "outerRadius": {"value": 90},
 
          "endAngle": {"field": "layout_end"},
 
          "fill": {"field": "x","scale": "color"}
 
        }
 
      }
 
    }
 
  ]
 
}</graph>
 
 
 
<graph>{
 
  "version": 2,
 
  "width": 150,
 
  "height": 150,
 
  "legends": [{"title": "Fruits","fill": "color"}],
 
  "data": [
 
{
 
  "name": "table",
 
  "values": [
 
    {"year": "2010","category": "Berries","value": 10},
 
    {"year": "2010","category": "Plums","value": 12},
 
    {"year": "2010","category": "Oranges","value": 3},
 
    {"year": "2010","category": "Apples","value": 7},
 
    {"year": "2015","category": "Berries","value": 8},
 
    {"year": "2015","category": "Plums","value": 4},
 
    {"year": "2015","category": "Oranges","value": 5},
 
    {"year": "2015","category": "Apples","value": 9}
 
  ]
 
}
 
  ],
 
  "scales": [
 
{
 
  "name": "radius",
 
  "type": "ordinal",
 
  "domain": {"data": "table","field": "year"},
 
  "range": "height"
 
},
 
{
 
  "name": "color",
 
  "range": "category20",
 
  "domain": {"data": "table","field": "category"},
 
  "type": "ordinal"
 
}
 
  ],
 
  "marks": [
 
{
 
  "type": "group",
 
  "from": {
 
    "data": "table",
 
    "transform": [{"type": "facet","groupby": ["year"]}]
 
  },
 
  "marks": [
 
    {
 
      "name": "stacked pie",
 
      "type": "arc",
 
      "from": {"transform": [{"field": "value","type": "pie"}]},
 
      "properties": {
 
        "enter": {
 
          "innerRadius": {
 
            "scale": "radius",
 
            "field": "year",
 
            "offset": 25
 
          },
 
          "stroke": {"value": "white"},
 
          "startAngle": {"field": "layout_start"},
 
          "outerRadius": {
 
            "scale": "radius",
 
            "field": "year",
 
            "offset": 75
 
          },
 
          "endAngle": {"field": "layout_end"},
 
          "fill": {"field": "category","scale": "color"}
 
        }
 
      }
 
    },
 
    {
 
      "type": "text",
 
      "properties": {
 
        "enter": {
 
          "radius": {
 
            "scale": "radius",
 
            "field": "year",
 
            "offset": 30
 
          },
 
          "theta": {"value":1.2},
 
          "x": 100,
 
          "y": 100,
 
          "text": {"field": "year"},
 
          "fill": {"value": "#eec"},
 
          "fontSize": {"value": 18}
 
        }
 
      }
 
    }
 
  ]
 
}
 
  ]
 
}</graph>
 
 
 
<graph>
 
{
 
  "version": 2, "width": 400, "height": 200,
 
  "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10},
 
  "data": [
 
    {
 
      "name": "table",
 
      "values": [
 
        {"x": 1,  "y": 28}, {"x": 2,  "y": 55},
 
        {"x": 3,  "y": 43}, {"x": 4,  "y": 91},
 
        {"x": 5,  "y": 81}, {"x": 6,  "y": 53},
 
        {"x": 7,  "y": 19}, {"x": 8,  "y": 87},
 
        {"x": 9,  "y": 52}, {"x": 10, "y": 48},
 
        {"x": 11, "y": 24}, {"x": 12, "y": 49},
 
        {"x": 13, "y": 87}, {"x": 14, "y": 66},
 
        {"x": 15, "y": 17}, {"x": 16, "y": 27},
 
        {"x": 17, "y": 68}, {"x": 18, "y": 16},
 
        {"x": 19, "y": 49}, {"x": 20, "y": 15}
 
      ]
 
    }
 
  ],
 
  "scales": [
 
    {
 
      "name": "x",
 
      "type": "ordinal",
 
      "range": "width",
 
      "domain": {"data": "table", "field": "x"}
 
    },
 
    {
 
      "name": "y",
 
      "range": "height",
 
      "nice": true,
 
      "domain": {"data": "table", "field": "y"}
 
    }
 
  ],
 
  "axes": [
 
    {"type": "x", "scale": "x"},
 
    {"type": "y", "scale": "y"}
 
  ],
 
  "marks": [
 
    {
 
      "type": "rect",
 
      "from": {"data": "table"},
 
      "properties": {
 
        "enter": {
 
          "x": {"scale": "x", "field": "x"},
 
          "width": {"scale": "x", "band": true, "offset": -1},
 
          "y": {"scale": "y", "field": "y"},
 
          "y2": {"scale": "y", "value": 0}
 
        },
 
        "update": {
 
          "fill": {"value": "steelblue"}
 
        },
 
        "hover": {
 
          "fill": {"value": "red"}
 
        }
 
      }
 
    }
 
  ]
 
}</graph>
 
 
 
 
 
Some other demo graphs are shown [https://www.mediawiki.org/wiki/Extension:Graph/Demo here].
 
}}
 

Revision as of 10:14, 19 February 2019

Language: English  • Deutsch
PrimeWiki is a revival of the terminated Mersennewiki for primes, prime searching, prime finding programs and related topics, still under construction.

(Some examples of extension handling with math notation, images, files, graphs can be found here.)

480px-Blank_globe.svg.png
World record
282,589,933-1
HP49
ALQ
GMP
ECM
LLR
PRP
This Wiki made up of 11,335 pages with 9,836 articles and 91 files done by 43 users in 27,717 edits.