File:Eisenstein primes.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 608 × 600 pixels. Other resolutions: 243 × 240 pixels | 486 × 480 pixels | 778 × 768 pixels | 1,200 × 1,184 pixels.
Original file (1,200 × 1,184 pixels, file size: 86 KB, MIME type: image/png)
File information
Structured data
Captions
Summary
[edit]Licensing
[edit]Public domainPublic domainfalsefalse |
I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
Mathematica Program
[edit]poly[x_, y_] := Polygon[ Table[{x - y/2, Sqrt[3] y/2}, {i, 1, 6}] + {{1/2, 1/(2 Sqrt[3])}, {0, 1/Sqrt[3]}, {-1/2, 1/(2 Sqrt[3])}, {-1/2, -1/(2 Sqrt[3])}, {0, -1/Sqrt[3]}, {1/2, -1/(2 Sqrt[3])}} ]; eisenprm[x_, y_] := Module[{n, p}, n = x^2 - x*y + y^2; If[PrimeQ[n], Return[True]]; p = Sqrt[n]; If[Mod[p, 3] == 2 && PrimeQ[p], True, False]] primelist = Module[{l}, l = {}; Do[b = 0; While[a^2 - a*b + b^2 < 500, If[eisenprm[a, b], l = Join[l, {poly[a, b], poly[-a, -b], poly[-b, a - b], poly[b, -a + b], poly[-a + b, -a], poly[a - b, a]}]]; b = b + 1], {a, 0, 22}]; l]; eisen = Apply[Show, Join[Map[Graphics, primelist], {AspectRatio -> Automatic}]]; Export["eisenstein prime.png", eisen, ImageSize -> 600, ImageResolution -> 144];
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 16:35, 6 December 2007 | 1,200 × 1,184 (86 KB) | Hack~commonswiki (talk | contribs) | {{Information |Description= Eisenstein primes with norm less than 500 |Source= own work, with Mathematica 6.0 |Date= December 6, 2007 |Author= ~~~ |Permission= Public Domain |other_versions= }} |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Hidden categories: