# Hacking with conversions of decimal and binary

```\$./app
Sign detection 
Power of two 
Counting No. of bits set 
Set or clear bits without branching
Find maximum value
Finding least common multiple
Finding the greatest commom divisor
Finding if a number is an Armstrong number or not
Finding if a given number is prime number
Finding the number of twin prime numbers
Finding if a number is palindrome or not
Finding prime factor of a number
Finding the value of M^N
Finding factorial of a number
Finding the sum of the series 1! + 2! +...+N! 
Finding the sume of the series 1 + 2 +...+N 
Finding Parity of an Integer 
Finding the biggest among three numbers 
Finding the sum of even and odd numbers up to a number N 
Finding the sum and number of integers divisible by 5 
Swapping Values 
Finding the decimal value for a binary 
Finding the reverse of an integer 
Finding a way for user authentication :
Finding the binary equivalent of a decimal number and count no. of 1's in binary number 
Option: 25
Enter a decimal integer
25
Input number is 25
It's binary equivalent is 11001
No. of 1s in the binary number is 3
\$./app
Sign detection 
Power of two 
Counting No. of bits set 
Set or clear bits without branching
Find maximum value
Finding least common multiple
Finding the greatest commom divisor
Finding if a number is an Armstrong number or not
Finding if a given number is prime number
Finding the number of twin prime numbers
Finding if a number is palindrome or not
Finding prime factor of a number
Finding the value of M^N
Finding factorial of a number
Finding the sum of the series 1! + 2! +...+N! 
Finding the sume of the series 1 + 2 +...+N 
Finding Parity of an Integer 
Finding the biggest among three numbers 
Finding the sum of even and odd numbers up to a number N 
Finding the sum and number of integers divisible by 5 
Swapping Values 
Finding the decimal value for a binary 
Finding the reverse of an integer 
Finding a way for user authentication :
Finding the binary equivalent of a decimal number and count no. of 1's in binary number 
Option: 22
Enter a binary number : 11001
The binary number is : 11001
It's decimal equivalent is:  25
\$

```