Prime Range

Prime Numbers are such numbers which are only divided by 1 and t...

N'th Prime

In this problem, you will have to print the nth prime number. Th...

Beauty of AP

Solving problems is fun in competitive programming, right? So le...

Rivalry Friends

Ryo and his girlfriend love to think about challenges. One day h...

Correct the Sieve

Sieve of Eratosthenes is a fast algorithm for finding prime numb...

Left Prime

Prime numbers are the ones which can only be divided by 1 and th...

Is It a Perfect Square?

Given some numbers, can you tell, if the product of these number...

The Game Is Back On

Moriarty is bored again. When he gets bored, the only thing he w...

Admission Gift

During admission exams in the city of RR (Royal Royal city), the...

Zacob The Batsman

It’s known that Zacob is a reliable batsman of LU CSE Cricket Te...

Laali Vs Bessie

One day Raju discovered USACO and from that day he would spend a...

Challenging Lover

Greetings to all of you. You must have heard about our star prog...

Magic Number

Jack loves to play with numbers. One day, while he was playing w...

Relatively Prime

Given a positive integer N, determine how many of the integers b...

Equation Equals Hazards

You are given the equation, GCD(A,M) = 1. You have to determine ...

Co-Prime Enemy Pair

Two integers A and B are known as co-prime or relatively prime i...

Easy Prime!

There are N numbers in an array. You will have Q queries. In eac...

Love Letters!

Lately Fahim is getting a lot of love letters. A LOT of love let...

A Lack of Common Divisors

Given a positive integer N, determine how many of the integers b...

Exponential Growth

You will be given two integers X and N, you have to calculate XN...

Birthday Gift for SJ

Today is your best friend SJ’s birthday. You want to buy a birth...

Sofdor Ali and the Puzzle of Weights

Sofdor Ali is one of the most famous scientists of Bangladesh. H...

Magician's Offer!

Rosi Vidmun is a greedy landlord who likes to grab as much land ...

Fast Co-Prime

Two numbers A and B are called co-prime if the only common posit...

Meera and Solo Chocolates

Meera bought candies from the store. She is now going to distrib...

Secret Meeting

The world is terrified by Pandas! After a miraculous chemical ex...

Oh Functions

Let’s define functions f and g as: f(x) = 2 * ( f(x-1) + g(x-1)...

Largest Prime

A positive integer number n is called a prime number, if it is o...

Christmas Tree

Professor Rio has an amazing Christmas tree. Unlike other trees,...

Is It A Square?

Shikamaru is the most brilliant student of his class. He is ve...

Chowdhury Saheb & the Numbers

You like short description of problems? Me too! Let’s go to an e...

Meena O Dosto Sele

Dosto sele Dipu and his friends used to disturb Rita Apu everyda...