素數螺旋,也稱為烏拉姆螺旋,是一種將正整數排列成螺旋(左圖)的圖,其中素數以某種方式沿著螺旋線標示。在上面的右圖中,素數用紅色表示,合數用黃色表示。
上圖顯示了螺旋的更大一部分,其中素數顯示為點。
在這樣的圖中,對角線的意外模式顯而易見,如上圖所示的
網格所示。這個構造最初是由波蘭裔美國數學家斯坦尼斯瓦夫·烏拉姆(Stanislaw Ulam,1909-1986)在 1963 年在一次科學會議上進行無聊的談話時塗鴉時完成的。在繪製線網格時,他決定按照螺旋模式對交叉點進行編號,然後開始圈出螺旋中為素數的數字。令人驚訝的是,圈出的素數似乎沿著許多對角直線排列,或者用烏拉姆稍微正式的散文來說,它“似乎表現出強烈的非隨機外觀”(Stein 等,1964)。該螺旋出現在 1964 年 3 月《科學美國人》雜誌的封面上。
值得注意的是,著名科幻小說作家亞瑟·C·克拉克在他的小說《城市與星星》(1956 年,第 6 章,第 54 頁)中描述了素數螺旋。克拉克寫道:“傑塞拉克一動不動地坐在數字的漩渦中。前一千個素數……傑塞拉克不是數學家,儘管有時他喜歡相信自己是。他所能做的就是在無限的素數陣列中搜索特殊的關係和規則,更有才華的人可能會將其納入一般規律中。他可以發現數字的行為方式,但他無法解釋原因。他的樂趣是在算術叢林中開闢道路,有時他會發現更有技巧的探險家錯過的奇蹟。他建立了一個包含所有可能整數的矩陣,並開始讓他的計算機將素數像珠子一樣排列在網格的交叉點處。”
然而,克拉克實際上從未進行過這個思想實驗(E. Pegg Jr. 的私人通訊,2002 年 5 月 27 日),因此將素數螺旋的意外特性的發現留給了烏拉姆七年後。
M. Charpentier 編寫了一個 PostScript 檔案,該檔案可以下載到印表機並繪製素數螺旋。
也可以構造六邊形素數螺旋,如上圖所示(Abbott 2005)。
另請參閱
素數生成多項式,
螺旋線
使用 探索
參考文獻
Abbott, P. (Ed.). "Mathematica One-Liners: Spiral on an Integer Lattice." Mathematica J. 1, 39, 1990.Abbott, P. "Re: Hexagonal Spiral." http://forums.wolfram.com/mathgroup/archive/2005/May/msg00336.html. May 11, 2005.Charpentier, M. "Prime Numbers in PostScript." http://www.cs.unh.edu/~charpov/Programming/PostScript-primes/.Clarke, A. C. The City and the Stars. New York: Harcourt, Brace, 1956.Dewdney, A. K. "Computer Recreations: How to Pan for Primes in Numerical Gravel." Sci. Amer. 259, 120-123, July 1988.Ellerstein, S. M. "The Pronic Renaissance: The Ulam Square Spiral (Modified)." J. Recr. Math. 29, 188-189, 1998.Gardner, M. "Mathematical Recreations: The Remarkable Lore of the Prime Number." Sci. Amer. 210, 120-128, Mar. 1964.Gardner, M. The Sixth Book of Mathematical Games from Scientific American. Chicago, IL: University of Chicago Press, pp. 80-83 and 88-89, 1984.Goddard, T. "Ulam Spiral." http://d4maths.lowtech.org/mirage/ulam.htm.Hoffman, P. The Man Who Loved Only Numbers: The Story of Paul Erdős and the Search for Mathematical Truth. New York: Hyperion, pp. 105-109, 1998.Lane, C. "Prime Spiral." http://cdl.best.vwh.net/Java/PrimeSpiralApplet.html.Leatherland, A. J. F. "The Mysterious Prime Spiral Phenomenon." http://yoyo.cc.monash.edu.au/~bunyip/primes/#spiral.Morin, D. "Le Village Premier." http://platon.lacitec.on.ca/~dmorin/applet/village/.Peterson, I. "MathTrek: Prime Spirals." May 4, 2002. http://www.sciencenews.org/20020504/mathtrek.asp.Pickover, C. "A Prime Plaid." In Computers and the Imagination: Visual Adventures Beyond the Edge. New York: St. Martin's, 1991.Stein, M. and Ulam, S. M. "An Observation on the Distribution of Primes." Amer. Math. Monthly 74, 43-44, 1967.Stein, M. L.; Ulam, S. M.; and Wells, M. B. "A Visual Display of Some Properties of the Distribution of Primes." Amer. Math. Monthly 71, 516-520, 1964.在 中被引用
素數螺旋
引用為
Weisstein, Eric W. “素數螺旋。” 來自 Web 資源。 https://mathworld.tw/PrimeSpiral.html
主題分類