
{"id":15969,"date":"2014-09-26T13:41:22","date_gmt":"2014-09-26T13:41:22","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=15969"},"modified":"2014-09-26T13:41:22","modified_gmt":"2014-09-26T13:41:22","slug":"hacking-with-an-algorithm-to-reverse-an-integer","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/09\/26\/hacking-with-an-algorithm-to-reverse-an-integer\/","title":{"rendered":"Hacking with an algorithm to reverse an integer"},"content":{"rendered":"<pre>\n$.\/app \nSign detection [1] \nPower of two [2] \nCounting No. of bits set [3] \nSet or clear bits without branching[4] \nFind maximum value[5] \nFinding least common multiple[6] \nFinding the greatest commom divisor[7] \nFinding if a number is an Armstrong number or not[8] \nFinding if a given number is prime number[9]  \nFinding the number of twin prime numbers[10] \nFinding if a number is palindrome or not[11] \nFinding prime factor of a number[12] \nFinding the value of M^N[13] \nFinding factorial of a number[14] \nFinding the sum of the series 1! + 2! +...+N! [15] \nFinding the sume of the series 1 + 2 +...+N [16] \nFinding Parity of an Integer [17] \nFinding the biggest among three numbers [18] \nFinding the sum of even and odd numbers up to a number N [19] \nFinding the sum and number of integers divisible by 5 [20] \nSwapping Values [21] \nFinding the decimal value for a binary [22] \nFinding the reverse of an integer [23] \n23\nEnter the number \n47124907242424245782424578\nGiven number = 9223372036854775807 \nIt's reverse = 7085774586302733229 \n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$.\/app Sign detection [1] Power of two [2] Counting No. of bits set [3] Set or clear bits without branching[4] Find maximum value[5] Finding least common multiple[6] Finding the greatest commom divisor[7] Finding if a number is an Armstrong number or not[8] Finding if a given number is prime number[9] Finding the number of twin &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2014\/09\/26\/hacking-with-an-algorithm-to-reverse-an-integer\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Hacking with an algorithm to reverse an integer&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[141,21,91],"tags":[953],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15969"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=15969"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15969\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=15969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=15969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=15969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}