|
|
(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:2%; font-size:150%">'''[[:Category:Primes|Primes]]'''</div> |
− | | + | <div style="position:absolute; width:150px; top:47%; right:2%; 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:250px; top:42%; left:33%; font-size:300%; cursor:default">{{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 '''{{NUMBEROFPAGES}} pages''' with '''{{NUMBEROFARTICLES}} articles''' and '''{{NUMBEROFFILES}} files''' done by '''{{#expr:{{NUMBEROFUSERS}}+{{NUMBEROFADMINS}}}} users''' in '''{{NUMBEROFEDITS}} 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=" " x_unit="No." y_type="no" y_title=" " y_unit="n value">Mersenne.csv</chart>
| |
− | | |
− | Display with image handler:
| |
− | [[File:Mersenne.csv|legend_title=Mersenne primes,x_type=no,x_title= ,x_unit=No.,y_type=no,y_title= ,y_unit=n value]]
| |
− | }}
| |