# number logic

## 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

## Decimal to Binary conversion

Java Program to Convert a Decimal Number to Binary. Video explanation

## Prime Triplet in Java

A prime triplet is a collection of three prime numbers in the form (p, p + 2, p + 6) or (p, p + 4, p + 6). Write a program in Java to display all the possible prime triplets in the range m and n, where the value of m and n are entered by the user. Example:INPUT:M …

## Java program for Brun’s Constant and Twin Prime number

Twin Primes are the prime numbers with a difference of 2, e.g., (3, 5), (5, 7), (11, 13), (17, 19) … etc. The sum of reciprocals of the twin primes up to a limit, converges to sum known as Brun’s Constant. Example : Say for Inputted number 13 and its twin primes are (3, 5), (5, …