{"id":12476,"date":"2017-10-20T16:10:47","date_gmt":"2017-10-20T21:10:47","guid":{"rendered":"http:\/\/huewhite.com\/umb\/?p=12476"},"modified":"2017-10-20T16:10:47","modified_gmt":"2017-10-20T21:10:47","slug":"idle-musings","status":"publish","type":"post","link":"https:\/\/huewhite.com\/umb\/2017\/10\/20\/idle-musings\/","title":{"rendered":"Idle Musings"},"content":{"rendered":"<p>Being part of Western culture can mean an eternal comparison to other denizens of the culture in terms of achievement, a savage drive to achieve in terms of novelty: the discovery of the new mammal, the creation of a new technology, etc. Thus we have the Patent Office and scientific journals innumerable. This can induce the feeling of redundancy, if one has completely accepted this culture.<\/p>\n<p>But it&#8217;s also possible to explore simply with the intention of the joy of bending one&#8217;s mind over and around something. This can be as concrete as the retired guy doing woodworking in the garage, or something more abstract. A lot of my programming has gone down this path &#8211; sure, someone has solved what I&#8217;m trying to solve, maybe better than I can possibly hope to achieve &#8211; and possibly that solution is sitting in that <em><strong>Design Patterns<\/strong><\/em> book I can see from chair here at home. I found <em><strong>Design Patterns<\/strong><\/em> to be quite the sleeper, which I suppose is a commentary on my professional attitudes<a href=\"#1\"><sup>[1]<\/sup><\/a>. However, my point is that the pleasure of pursuing a solution is more important to me than knowing the solution itself. And if I come up with a better solution, so much the better.<\/p>\n<p>So in the latter spirit, and because I write this blog to vent all sorts of pressures, I write the following.<\/p>\n<hr \/>\n<p>Due to a <a href=\"http:\/\/www.newscientist.com\/article\/mg23631460-500-riddle-of-the-primes-deciphering-the-nature-of-numbers\/\" target=\"_blank\" rel=\"noopener\">recent article<\/a> in <em><strong>NewScientist<\/strong><\/em> (7 October 2017, paywall) I&#8217;ve been musing on the topic of <a href=\"http:\/\/en.wikipedia.org\/wiki\/Prime_number\" target=\"_blank\" rel=\"noopener\">prime numbers<\/a>. These are critical to encryption, but they&#8217;re interesting in and of themselves. First, some terminology.<\/p>\n<p><em>P<\/em> is the set of prime numbers, where<em> P<sub>n<\/sub><\/em> is the nth member of <em>P. P<sub>0<\/sub><\/em> is 2, <em>P<sub>1<\/sub><\/em> is 3, etc.<\/p>\n<p><sub><em>n<\/em><\/sub> is the nth member of <em>P<\/em>.<\/p>\n<p><em>N<\/em> is the set of natural numbers &gt; 1.<\/p>\n<p><sub><em>m<\/em><\/sub> is the mth member of <em>N<\/em>.<\/p>\n<p><sub><em>+<\/em><\/sub>\u00a0(sub +) means <em>one or more<\/em>.<\/p>\n<p>One of the mysteries of prime numbers is how to efficiently calculate them. There are <a href=\"http:\/\/en.wikipedia.org\/wiki\/Formula_for_primes\" target=\"_blank\" rel=\"noopener\">formulas<\/a> for calculation of primes, but they are not efficient &#8211; by which I mean they have an algorithmic complexity of <em>O(n<sup>2<\/sup>)<\/em> or worse, where n = the prime desired.<\/p>\n<p>At this juncture I&#8217;ll note that my mathematical training is fairly minimal, and my grasp of the technical language, wobbly at best, has degraded markedly over the years.<\/p>\n<p>So I wonder what would happen if we thought of <em>N,<\/em> of which <em>P<\/em>&#8216;s contents are members, as, well, a secondary set, and P as a foundational set, a set upon which <em>N<\/em> depends. How, then, would they be related?<\/p>\n<p>I think it&#8217;d be a projection. Think of <em>N<\/em> as an ordered series of <em>P<sub>n<\/sub><\/em>-derivatives, by which I mean that each <em>N<sub>m<\/sub><\/em> is ultimately related to <em>P<sub>+<\/sub><\/em>. The projection, which I suspect is a set of equations, calculates the value <em>N<sub>m<\/sub><\/em>. For<em> N<sub>m<\/sub><\/em> which are prime, the selected equation is trivially<\/p>\n<p style=\"text-align: center;\"><em>P<sub>n<\/sub> * 1<\/em><\/p>\n<p>The balance of <em>N<\/em> will be built from <em>P<sub>+<\/sub><\/em>. But what is the relationship between <sub>n<\/sub> and <sub>m<\/sub>? That&#8217;s the worldly goal. The next step is understanding the equations involved, and as importantly &#8211; no, more so &#8211; the proper way to select which equation to use to calculate <em>N<sub>m<\/sub><\/em>. Once that is understood, then perhaps a more efficient worldly goal can be realized.<\/p>\n<p>Or not. I&#8217;m just bumbling along here without reference to the weighty literature on the subject, nor any particular mathematical skills. Just havin&#8217; fun.<\/p>\n<hr \/>\n<p><a name=\"1\"><\/a><br \/>\n<sup>1<\/sup>Sitting right next to it is <em><strong>Functional <\/strong><strong><em>Programming<\/em>: Practice And Theory<\/strong><\/em>, Bruce MacLennan, which I think should be on every programmer&#8217;s shelf, and yes I&#8217;ve read darn near the whole thing. Couldn&#8217;t quite stand the highly theoretical material. But for what the future of programming <em>should<\/em> be, this is part of it.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Being part of Western culture can mean an eternal comparison to other denizens of the culture in terms of achievement, a savage drive to achieve in terms of novelty: the discovery of the new mammal, the creation of a new technology, etc. Thus we have the Patent Office and scientific \u2026 <a class=\"continue-reading-link\" href=\"https:\/\/huewhite.com\/umb\/2017\/10\/20\/idle-musings\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12476","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/posts\/12476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/comments?post=12476"}],"version-history":[{"count":8,"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/posts\/12476\/revisions"}],"predecessor-version":[{"id":12489,"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/posts\/12476\/revisions\/12489"}],"wp:attachment":[{"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/media?parent=12476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/categories?post=12476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huewhite.com\/umb\/wp-json\/wp\/v2\/tags?post=12476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}