{"id":3549,"date":"2019-04-01T00:01:10","date_gmt":"2019-04-01T07:01:10","guid":{"rendered":"https:\/\/c-for-dummies.com\/blog\/?p=3549"},"modified":"2019-04-09T16:43:28","modified_gmt":"2019-04-09T23:43:28","slug":"interesting-numbers","status":"publish","type":"post","link":"https:\/\/c-for-dummies.com\/blog\/?p=3549","title":{"rendered":"Interesting Numbers"},"content":{"rendered":"<p>Long ago, I worked with a programmer who had a habit of referring to certain values as &#8220;interesting.&#8221; What was an interesting number to him? 43,690. Yeah, it seems dull, but in hex it&#8217;s <code>0xAAAA<\/code> and in binary it&#8217;s <code>1010101010101010<\/code>. Interesting.<br \/>\n<!--more--><br \/>\nMathematicians have a slate of numbers they find interesting. Most of the fascinating ones are assigned to letters such as &pi;, e, and &phi;. Mercifully, this Exercise isn&#8217;t about those numbers.<\/p>\n<p>For a typical human, an interesting number might be 777 &mdash; especially if you&#8217;re in Las Vegas. The number itself isn&#8217;t particularly useful nor does it harbor any mathematical curiosities. It&#8217;s just three repetitive digits.<\/p>\n<p>Your task for this month&#8217;s Exercise is to write code that plucks out all the triple-digit &#8220;interesting&#8221; values from 100 through 1000. Specifically, these values: 111, 222, 333, 444, 555, 666, 777, 888, 999.<\/p>\n<p>I can imagine several ways to accomplish this task, one of which doesn&#8217;t use math at all!<\/p>\n<p><a href=\"https:\/\/c-for-dummies.com\/blog\/?p=3559\">Click here<\/a> to compare my solutions with your own.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some numbers are more interesting than others. <a href=\"https:\/\/c-for-dummies.com\/blog\/?p=3549\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-3549","post","type-post","status-publish","format-standard","hentry","category-exercise"],"_links":{"self":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3549"}],"version-history":[{"count":5,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3549\/revisions"}],"predecessor-version":[{"id":3572,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3549\/revisions\/3572"}],"wp:attachment":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}