{"id":4260,"date":"2010-03-08T10:48:23","date_gmt":"2010-03-08T02:48:23","guid":{"rendered":"http:\/\/www.intmath.com\/blog\/?p=4260"},"modified":"2015-01-12T20:40:44","modified_gmt":"2015-01-12T12:40:44","slug":"lines-of-primes","status":"publish","type":"post","link":"https:\/\/www.intmath.com\/blog\/mathematics\/lines-of-primes-4260","title":{"rendered":"Lines of primes"},"content":{"rendered":"<p>Prime numbers have fascinated mathematicians for centuries. A prime number has exactly 2 factors - one and itself. The only even prime is 2, the rest are all odd. <\/p>\n<p>The primes less than 100 are as follows: <\/p>\n<p>2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97<\/p>\n<p>There doesn't appear to be a pattern in the distribution of primes.<\/p>\n<p>How about the &quot;gap&quot; (spacing) between the primes? Is there a pattern in that?<\/p>\n<p>1\t2\t2\t4\t2\t4\t2\t4\t6\t2\t6\t4\t2\t4\t6\t6\t2\t6\t4\t2\t6\t4\t6\t8<\/p>\n<p>There doesn't appear to be a pattern in the gaps, either.<\/p>\n<h2>Spiraling   <\/h2>\n<p>Stanislaw Ulam was a Polish-American mathematician who was involved in the Manhattan Project during World War II.<\/p>\n<p>One day he was bored in a meeting and  began to write numbers in a spiral. He started like this, moving in a clockwise direction. <\/p>\n<table cellpadding=\"5\" cellspacing=\"0\">\n<tr height=\"17\">\n<td>1 &rarr;<\/td>\n<td>2 &darr;<\/td>\n<\/tr>\n<tr height=\"17\">\n<td>4 &larr; <\/td>\n<td>3<\/td>\n<\/tr>\n<\/table>\n<p>The next round continued the &quot;spiraling&quot; pattern, as follows. <\/p>\n<table cellpadding=\"5\" cellspacing=\"0\">\n<tr height=\"17\">\n<td>7<\/td>\n<td>8<\/td>\n<td>9<\/td>\n<td>10<\/td>\n<\/tr>\n<tr height=\"17\">\n<td>6<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td>11<\/td>\n<\/tr>\n<tr height=\"17\">\n<td>5<\/td>\n<td>4<\/td>\n<td>3<\/td>\n<td>12<\/td>\n<\/tr>\n<\/table>\n<p>He kept going (it must have been a long meeting),  then highlighted the prime numbers and found something interesting.<\/p>\n<table cellspacing=\"0\" cellpadding=\"5\">\n<tr height=\"17\">\n<td height=\"17\"  style=\"background-color:#FFCC99\">73<\/td>\n<td>74<\/td>\n<td>75<\/td>\n<td>76<\/td>\n<td>77<\/td>\n<td>78<\/td>\n<td style=\"background-color:#FFCC99\">79<\/td>\n<td>80<\/td>\n<td>81<\/td>\n<td>82<\/td>\n<\/tr>\n<tr height=\"17\">\n<td height=\"17\">72<\/td>\n<td style=\"background-color:#FFCC99\">43<\/td>\n<td>44<\/td>\n<td>45<\/td>\n<td>46<\/td>\n<td style=\"background-color:#FFCC99\">47<\/td>\n<td>48<\/td>\n<td>49<\/td>\n<td>50<\/td>\n<td style=\"background-color:#FFCC99\">83<\/td>\n<\/tr>\n<tr height=\"17\">\n<td height=\"17\" style=\"background-color:#FFCC99\">71<\/td>\n<td>42<\/td>\n<td>21<\/td>\n<td>22<\/td>\n<td style=\"background-color:#FFCC99\">23<\/td>\n<td>24<\/td>\n<td>25<\/td>\n<td>26<\/td>\n<td style=\"background-color:#FFCC99\">51<\/td>\n<td>84<\/td>\n<\/tr>\n<tr height=\"17\">\n<td height=\"17\">70<\/td>\n<td style=\"background-color:#FFCC99\">41<\/td>\n<td>20<\/td>\n<td style=\"background-color:#FFCC99\">7<\/td>\n<td>8<\/td>\n<td>9<\/td>\n<td>10<\/td>\n<td>27<\/td>\n<td>52<\/td>\n<td>85<\/td>\n<\/tr>\n<tr height=\"17\">\n<td height=\"17\">69<\/td>\n<td>40<\/td>\n<td style=\"background-color:#FFCC99\">19<\/td>\n<td>6<\/td>\n<td>1<\/td>\n<td style=\"background-color:#FFCC99\">2<\/td>\n<td style=\"background-color:#FFCC99\">11<\/td>\n<td>28<\/td>\n<td style=\"background-color:#FFCC99\">53<\/td>\n<td>86<\/td>\n<\/tr>\n<tr height=\"17\">\n<td height=\"17\">68<\/td>\n<td>39<\/td>\n<td>18<\/td>\n<td style=\"background-color:#FFCC99\">5<\/td>\n<td>4<\/td>\n<td style=\"background-color:#FFCC99\">3<\/td>\n<td>12<\/td>\n<td style=\"background-color:#FFCC99\">29<\/td>\n<td>54<\/td>\n<td>87<\/td>\n<\/tr>\n<tr height=\"17\">\n<td height=\"17\" style=\"background-color:#FFCC99\">67<\/td>\n<td>38<\/td>\n<td style=\"background-color:#FFCC99\">17<\/td>\n<td>16<\/td>\n<td>15<\/td>\n<td>14<\/td>\n<td style=\"background-color:#FFCC99\">13<\/td>\n<td>30<\/td>\n<td>55<\/td>\n<td>88<\/td>\n<\/tr>\n<tr height=\"17\">\n<td height=\"17\">66<\/td>\n<td style=\"background-color:#FFCC99\">37<\/td>\n<td>36<\/td>\n<td>35<\/td>\n<td>34<\/td>\n<td>33<\/td>\n<td>32<\/td>\n<td style=\"background-color:#FFCC99\">31<\/td>\n<td>56<\/td>\n<td style=\"background-color:#FFCC99\">89<\/td>\n<\/tr>\n<tr height=\"17\">\n<td height=\"17\">65<\/td>\n<td>64<\/td>\n<td>63<\/td>\n<td>62<\/td>\n<td style=\"background-color:#FFCC99\">61<\/td>\n<td>60<\/td>\n<td style=\"background-color:#FFCC99\">59<\/td>\n<td>58<\/td>\n<td style=\"background-color:#FFCC99\">57<\/td>\n<td>90<\/td>\n<\/tr>\n<tr height=\"17\">\n<td height=\"17\">100<\/td>\n<td>99<\/td>\n<td>98<\/td>\n<td style=\"background-color:#FFCC99\">97<\/td>\n<td>96<\/td>\n<td>95<\/td>\n<td>94<\/td>\n<td>93<\/td>\n<td>92<\/td>\n<td style=\"background-color:#FFCC99\">91<\/td>\n<\/tr>\n<\/table>\n<p>Many of the  primes appear to line up when arranged in such a sprial.<\/p>\n<p>Let's go much bigger and see what happens. We observe there are many places where the primes form line segments, mostly at 45&deg;, but sometimes horizontal and vertical.<\/p>\n<p><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2010\/03\/prime-distribution.gif\" alt=\"prime distribution - spiraling\" width=\"345\" height=\"271\" \/><\/p>\n<p>What I found interesting in the large picture is where primes are <strong>not<\/strong> - there are distinct blocks and patterns of white space where no primes occur. <\/p>\n<p>This spiral appeared on the cover of Scientific American in March 1964 and continues to generate research interest to this day.<\/p>\n<h2>Why do we care about primes?<\/h2>\n<p>Apart from many other things, prime numbers are vital in the development of encryption algorithms, used in generating secure Internet transactions. <\/p>\n<p class=\"alt\">See the <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/lines-of-primes-4260#comments\" id=\"comms\">6 Comments<\/a> below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/lines-of-primes-4260\"><img loading=\"lazy\" src=\"\/blog\/wp-content\/images\/2010\/03\/primes.gif\" alt=\"primes\" title=\"primes\" width=\"128\" height=\"110\" class=\"imgRt\" \/><\/a>Prime numbers seem to be randomly distributed &mdash; but perhaps there are patterns after all.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":""},"categories":[4],"tags":[134],"_links":{"self":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/4260"}],"collection":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/comments?post=4260"}],"version-history":[{"count":0,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/4260\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/media?parent=4260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/categories?post=4260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/tags?post=4260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}