{"id":287,"date":"2009-01-16T21:10:32","date_gmt":"2009-01-17T02:10:32","guid":{"rendered":"http:\/\/craig.dubculture.co.nz\/blog\/?p=287"},"modified":"2021-02-07T20:53:49","modified_gmt":"2021-02-07T20:53:49","slug":"two-hits","status":"publish","type":"post","link":"http:\/\/craig.dubculture.co.nz\/blog\/2009\/01\/16\/two-hits\/","title":{"rendered":"Two hits"},"content":{"rendered":"<p>The question: \"why do hash functions use prime numbers?\" \u00a0I knew I'd seen <a href=\"http:\/\/channel9.msdn.com\/forums\/TechOff\/257328-Whats-behind-stringGetHashCode\/?CommentID=351701\">someone suggest it wasn't necessary<\/a> in researching this topic last week. \u00a0(They cited <a href=\"http:\/\/www.azillionmonkeys.com\/qed\/hash.html\">this<\/a>, if you care.)<\/p>\n<p>The Google search: \"prime hash\".<\/p>\n<p>Result #1: <a href=\"http:\/\/computinglife.wordpress.com\/2008\/11\/20\/why-do-hash-functions-use-prime-numbers\/\">Why do hash functions use prime numbers?<\/a><\/p>\n<p>Result #2: <a href=\"https:\/\/www.youtube.com\/watch?v=858ZcfrDRM8\">Prime Hanger Steak with Crispy Hash Browns and Pierre Poivre Sauce<\/a><\/p>\n<div style=\"width: 177px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.youtube.com\/watch?v=858ZcfrDRM8\"><img decoding=\"async\" loading=\"lazy\" title=\"Prime Hanger Steak with Crispy Hash Browns and Pierre Poivre Sauce\" src=\"http:\/\/web.archive.org\/web\/20100602072228if_\/http:\/\/www.behindtheburner.com\/site_images\/238\/853.jpg\" alt=\"Mmmm, prime hanger steak with crispy hash browns and pierre poivre sauce!\" width=\"167\" height=\"125\" \/><\/a><p class=\"wp-caption-text\">Mmmm, prime hanger steak with crispy hash browns and pierre poivre sauce!<\/p><\/div>\n<p>I think it was lunchtime at that point.<\/p>\n<p>Also, <a href=\"http:\/\/channel9.msdn.com\/forums\/TechOff\/257328-Whats-behind-stringGetHashCode\/?CommentID=350367\">did you know the reproductive cycle of cicadas is 17 years<\/a>?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The question: \"why do hash functions use prime numbers?\" \u00a0I knew I'd seen someone suggest it wasn't necessary in researching this topic last week. \u00a0(They cited this, if you care.) The Google search: \"prime hash\". Result #1: Why do hash functions use prime numbers? Result #2: Prime Hanger Steak with Crispy Hash Browns and Pierre [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[66,68],"tags":[69,3],"_links":{"self":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/287"}],"collection":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":11,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":709,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions\/709"}],"wp:attachment":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}