
{"id":15974,"date":"2014-09-30T20:11:09","date_gmt":"2014-09-30T20:11:09","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=15974"},"modified":"2014-09-30T20:11:09","modified_gmt":"2014-09-30T20:11:09","slug":"hacking-with-conversions-of-decimal-and-binary","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/09\/30\/hacking-with-conversions-of-decimal-and-binary\/","title":{"rendered":"Hacking with conversions of decimal and binary"},"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] \nFinding a way for user authentication [24]: \nFinding the binary equivalent of a decimal number and count no. of 1's in binary number [25] \nOption: 25\nEnter a decimal integer \n25\n Input number is 25\n It's binary equivalent is 11001 \nNo. of 1s in the binary number is 3\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] \nFinding a way for user authentication [24]: \nFinding the binary equivalent of a decimal number and count no. of 1's in binary number [25] \nOption: 22\nEnter a binary number : 11001\nThe binary number is : 11001 \nIt's decimal equivalent is:  25 \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\/30\/hacking-with-conversions-of-decimal-and-binary\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Hacking with conversions of decimal and binary&#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":[471,585,642],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15974"}],"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=15974"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15974\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=15974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=15974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=15974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}