Navigation
Topics Register • News • History • How to • Sequences statistics • Template prototypes

Examples

From Prime-Wiki
Jump to: navigation, search

Some examples and tests for the Wiki-extensions.

Examples in math (LaTeX) notation
<math>N \supset \mathbb P = \{ p_n \mid n \in N \}</math>
[math]\displaystyle{ N \supset \mathbb P = \{ p_n \mid n \in N \} }[/math]
<math>\sideset{_1^2}{_3^4}\prod_a^b</math>
[math]\displaystyle{ \sideset{_1^2}{_3^4}\prod_a^b }[/math]
<math>\iiiint\limits_{F} \, dx\,dy\,dz\,dt</math>
[math]\displaystyle{ \iiiint\limits_{F} \, dx\,dy\,dz\,dt }[/math]
<math>f(n) =
\begin{cases}
  n/2, & \mbox{if }n\mbox{ is even} \\
  3n+1, & \mbox{if }n\mbox{ is odd}
\end{cases}</math>
[math]\displaystyle{ f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases} }[/math]
<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>
[math]\displaystyle{ \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]
<math>\pi(1)=0\ ;\ \pi(10) = 4\ ;\ \pi(100) = 25\ ;\ \pi(1000) = 168; \ \pi(1000000)=78498</math>
[math]\displaystyle{ \pi(1)=0\ ;\ \pi(10) = 4\ ;\ \pi(100) = 25\ ;\ \pi(1000) = 168; \ \pi(1000000)=78498 }[/math]
Example of page categorizations
!TopLevel(19 C)
User de(2 C, 2 P)
User de-1(1 P)
no subcategories
User de-N(1 P)
no subcategories
User en(4 C, 6 P)
User en-1(empty)
no subcategories
User en-5(2 P)
no subcategories
User en-3(2 P)
no subcategories
User en-N(2 P)
no subcategories
User eo(1 C, 1 P)
User eo-1(1 P)
no subcategories
User es(1 C, 2 P)
User es-1(2 P)
no subcategories
User fr(1 C, 2 P)
User fr-1(2 P)
no subcategories
User ru(1 C, 2 P)
User ru-N(2 P)
no subcategories
User uk(1 C, 1 P)
User uk-N(1 P)
no subcategories
User zh(1 C, 1 P)
User zh-1(1 P)
no subcategories
Files(4 C)
CSV(16 F)
no subcategories
Images(10 F)
no subcategories
PDF(2 F)
no subcategories
Sieves(15 F)
no subcategories
Frequently asked questions(4 C, 3 P)
General FAQ(1 P)
no subcategories
Hardware FAQ(1 P)
no subcategories
Math FAQ(empty)
no subcategories
Project FAQ(1 P)
no subcategories
Hardware(22 P)
no subcategories
Help(16 P)
no subcategories
Maintenance(2 C, 1 P)
Missing XCount(3 P)
no subcategories
Wrong XCount(empty)
no subcategories
Math(2 C, 75 P)
Factorization(1 C, 14 P)
Factoring program(7 P)
no subcategories
Primality tests(1 C, 11 P)
no subcategories
Number(4 C, 16 P)
Aliquot sequence(2 P)
no subcategories
Generalized Fermat number(2 C, 2 P)
no subcategories
no subcategories
no subcategories
no subcategories
Prime(12 C, 10 P)
Carol-Kynea prime(4 C, 385 P)
Carol-Kynea power-of(22 P)
no subcategories
no subcategories
no subcategories
no subcategories
Cullen prime(3 C)
Gen Cullen prime(1 C, 32 P)
Gen Cullen prime M(1 P)
no subcategories
Gen Cullen prime P(1 P)
no subcategories
GF Divisor(1 C)
GF Divisor 3(1 P)
no subcategories
Leyland prime(2 C, 1 P)
Leyland prime M(2 C, 1 P)
Leyland prime M PRP(empty)
Leyland prime P(2 C, 1,816 P)
Leyland prime P proven(291 P)
Leyland prime P PRP(1,523 P)
Mersenne prime(53 P)
no subcategories
Proth prime(9 C, 61 P)
Proth count 100(2 P)
no subcategories
Proth k=3k value(23 P)
no subcategories
Proth k=15k value(5 P)
no subcategories
Proth k=2145k value(empty)
no subcategories
Proth k=2805k value(empty)
no subcategories
Proth k=Low weight(31 P)
no subcategories
Proth k=Sierpinski(2 P)
no subcategories
no subcategories
Zero PCount(12 P)
no subcategories
Gen Proth prime(5 C)
Gen Proth prime 3(6 P)
no subcategories
Gen Proth prime 5(34 P)
no subcategories
Gen Proth prime 6(1 P)
no subcategories
Gen Proth prime 7(2 P)
no subcategories
Gen Proth prime 11(1 P)
no subcategories
Riesel prime(27 C, 2,159 P)
Riesel k=1-300(151 P)
no subcategories
Riesel k=300-2000(408 P)
no subcategories
Riesel k=2000-4000(9 P)
no subcategories
Riesel k=4000-6000(105 P)
no subcategories
Riesel k=6000-8000(8 P)
no subcategories
Riesel k=8000-10000(12 P)
no subcategories
Riesel k=10e4-10e5(792 P)
no subcategories
Riesel k=10e5-10e6(602 P)
no subcategories
Riesel k=10e6-10e7(35 P)
no subcategories
Riesel k=10e7-10e8(21 P)
no subcategories
Riesel k=10e8-10e9(9 P)
no subcategories
Riesel k=10e9-10e10(4 P)
no subcategories
no subcategories
Riesel prime riesel f0(374 P)
Riesel prime riesel f1(401 P)
Riesel prime riesel f2(257 P)
Riesel prime riesel f3(139 P)
Riesel count 100(17 P)
no subcategories
Riesel k=3k value(656 P)
no subcategories
Riesel k=15k value(255 P)
no subcategories
Riesel k=2145k value(37 P)
no subcategories
Riesel k=2805k value(23 P)
no subcategories
Riesel k=Low weight(1,114 P)
no subcategories
Riesel k=Riesel(17 P)
no subcategories
Riesel prime const(3 P)
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
Zero RCount(62 P)
no subcategories
Gen Riesel prime(3 C)
Gen Riesel prime 5(5 P)
no subcategories
Gen Riesel prime 10(8 P)
no subcategories
no subcategories
Twin prime(2 P)
no subcategories
Williams prime(4 C, 1 P)
Williams prime MM(1 C, 172 P)
Williams prime MP(1 C, 156 P)
Williams prime PM(1 C, 90 P)
Williams prime PP(1 C, 85 P)
Woodall prime(3 C)
Gen Woodall prime(19 P)
no subcategories
Gen Woodall prime M(1 C, 4 P)
Gen Woodall prime P(1 C, 3 P)
Organizations(1 C, 4 P)
Universities(4 P)
no subcategories
Person(114 P)
no subcategories
Project(5 C, 2 P)
Cunningham project(5 P)
no subcategories
Conjectures 'R Us(2 C, 1 P)
CRUS Even Riesel(3 P)
no subcategories
no subcategories
No Prime Left Behind(4 C, 13 P)
NPLB Drive 13(101 P)
no subcategories
NPLB Drive 14(202 P)
no subcategories
NPLB Drive 15(25 P)
no subcategories
NPLB Maxi Drive 1(1 P)
no subcategories
PrimeGrid(8 C, 3 P)
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
Riesel Prime Search(6 C, 3 P)
RPS Drive 7(1 P)
no subcategories
RPS Drive 10(129 P)
no subcategories
RPS Drive 12(2 P)
no subcategories
RPS 1st Megabit Drive(11 P)
no subcategories
RPS 2nd Megabit Drive(30 P)
no subcategories
RPS 3rd Megabit Drive(10 P)
no subcategories
GIMPS FAQ(7 P)
no subcategories
Home Prime Search(3 P)
no subcategories
Seventeen or Bust(6 P)
no subcategories
Reserved(2 C, 187 P)
Multi Reservation(20 P)
no subcategories
ReservedM(639 P)
no subcategories
Shortcut(19 P)
no subcategories
Software(5 C, 39 P)
Code snippets(3 P)
no subcategories
Factoring program(7 P)
no subcategories
no subcategories
Sieving program(5 P)
no subcategories
Tools(1 P)
no subcategories
Spelling(3 P)
no subcategories
System(4 C, 15 P)
Hidden categories(5 C)
no subcategories
Last updated(8 P)
no subcategories
Missing XCount(3 P)
no subcategories
no subcategories
Wrong XCount(empty)
no subcategories
no subcategories
Pages with graphs(1 P)
no subcategories
Stub(58 P)
no subcategories
Teams(1 P)
no subcategories
Templates(4 C, 59 P)
Infoboxes(5 P)
no subcategories
Multilanguage(11 P)
no subcategories
Navboxes(11 P)
no subcategories
Prime collections(29 P)
no subcategories
Websites(10 P)
no subcategories
Example of prime sequence and reservation
Configuration tests: external links open in new browser tab/window
Examples of template usage and data table generating

The category for Carol/Kynea primes holds example pages for some bases.

These pages hold their data in the template Carol-Kynea prime using named parameters.

The parameters can be used to create automatically a table of those pages.
Examples for including PDF documents

  • Show document starting at page 3 and different sizings:
Example for fetching data from RieselPrime database

The data are collected from the internal SQL database by 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.

Mersenne primes [math]\displaystyle{ 2^n-1 }[/math], prime for n:

2*, 3, 5*, 7*, 13, 17, 19*, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213, 19937, 21701, 23209, 44497, 86243, 110503, 132049, 216091, 756839, 859433, 1257787, 1398269, 2976221, 3021377, 6972593, 13466917, 20996011, 24036583, 25964951, 30402457, 32582657, 37156667, 42643801, 43112609, 57885161,
Examples for showing images of external pages

Images from external sources have to be put as full link on a page.

Images from Commons Wikimedia

MarinMersenne.jpg
Marin Mersenne
GIMPS_logo.png
GIMPS logo

Image from Wikipedia

Images can only be diplayed in available sizes, no resize possible.

Marin_mersenne.jpg
Image from Wikpedia
Example for SVG support

Test file, original size 580x400 pixel: Test.svg

Test file,size 80 pixel in width: Test.svg

Clicking on the image will lead to the saved file.
Examples for graphs from CSV file

Display with parser function:

Display with image handler:

Examples for graphs extension

Using template PieChart:

Using <graph>-tag directly:


Some other demo graphs are shown here.
Help