# number logic

## Perfect Number Java Program (using Functions)

Write a program in java to accept a number and check the number is Perfect number or not using the following Functions. [Perfect: If the Sum of factors excluding the number itself is equal to the original number then it is termed as a Perfect number ] Example : 6, 28 etc. static void accept( …

## CORONA Number – Java Program

Write a program to accept a number and check whether it is a CORONA number or not. CORONA NUMBER: A number whose all digits are odd. Example: 3975 – all digits are odd

## Automorphic Number – Java Program

Write a program in Java to input a number and check whether it is Automorphic or not.An automorphic number is an integer whose square ends with the given integer, as(25)^2 = 625, and (76)^2 = 5776.

## Disarium Number using Recursion Java Program – ISC Computer Science

Question. A disarium number is a number in which the sum of the digits to the power of their respective position is equal to the number itself.Example: 135 = 11+ 32 + 53Hence, 135 is a disarium number. Design a class Disarium to check if a given number is a disarium number or not. Some …

## Prime Adam Integer – ISC 2020 Computer Practical Question 1

A Prime-Adam integer is a positive integer (without leading zeroes) which is a prime as well as an Adam number. Prime number: A number which has only two factors, i.e. 1 and the number itself. Example: 2, 3, 5, 7, etc. Adam number: The square of a number and the square of its reverse are reverse to …

## Circular Prime – ISC 2016 Computer Practical Paper

Question: A Circular Prime is a prime number that remains prime under cyclic shifts of its digits. When the leftmost digit is removed and replaced at the end of the remaining string of digits, the generated number is still prime. The process is repeated until the original number is reached again.A number is said to be prime …

## Special Two Digit Number in Java | ICSE Computer

A special two-digit number is such that when the sum of its digits is added to the product of its digits, the result is equal to the original two-digit number. Example: Consider the number 59. Sum of digits = 5 + 9 = 14 Product of its digits = 5 × 9 = 45 Sum …

## GCD or HCF of Two Numbers Java Program

The GCD (Greatest Common Divisor) of two numbers is the largest positive integer number that divides both the numbers without leaving any remainder. For example. GCD of 30 and 45 is 15. GCD also known as HCF (Highest Common Factor).

## Neon Number – Java Program ICSE

Write a program to input a number and check if it is a neon number or not. A number is said to be neon, if sum of all digits of the square of the number is equal to the number.For example,(1) Input   9, It’s square => 9² = 81 . Now, 8+1 = 9 So 9 …

## Binary to Decimal conversion

Write a Java program to convert a binary number to decimal number. Video explanation