## The Ulam Spiral

The Ulam spiral or prime spiral is a graphical depiction of the set of prime numbers. It emphasizes the striking appearance in the spiral of… Read More »

The Ulam spiral or prime spiral is a graphical depiction of the set of prime numbers. It emphasizes the striking appearance in the spiral of… Read More »

Given two integers ‘L’ and ‘R’, we need to write a program that finds the count of numbers having prime number of set bits in… Read More »

Given an array of n elements, we need to find the geometric mean of the numbers. Generally geometric mean of n numbers is the nth… Read More »

Given a non-negative number num. The problem is to find the smallest number greater than num by performing atmost on swap operation between any two… Read More »

Given a non-negative number n. The problem is to find the smallest number k such that the product of digits of k is equal to… Read More »

Given a number, you have to represent this number as sum of minimum number of possible psuedobinary numbers. A number is said to be psuedobinary… Read More »

Two integers n and k are given. Our task is to print K-rounding of n. K-rounding is the minimum positive integer X, such that x… Read More »

The nth Taxicab number Taxicab(n), also called the n-th Hardy-Ramanujan number, is defined as the smallest number that can be expressed as a sum of… Read More »

A Geometric series is a series with a constant ratio between successive terms. The first term of the series is denoted by a and common… Read More »

We are given a number n. Our task is to check whether the number is circular prime or not. Circular Prime : A prime number… Read More »

Given a number n, we need to rearrange all its digits such that the new arrangement is divisible by n. Also, the new number should… Read More »

Given a non-negative number n. The problem is to check whether the given number n can be expressed as a product of single digit numbers… Read More »

In number system, Sylvester’s sequence is an integer sequence in which each member of the sequence is the product of the previous members, plus one.… Read More »

Betrothed numbers are two positive numbers such that the sum of the proper divisors of either number is one more than (or one plus) the… Read More »

A composite number is a positive integer that is not prime. In other words, it has a positive divisor other than one or itself. First… Read More »