GCD Plus LCM

In this problem you will be given two integers a, b. You have to answer if GCD(a, b) + LCM(a, b) = a...

N-th Prime

In this problem, you will have to print the n-th prime number. The first few prime numbers are given...

Karim Meets Gollum

After hearing about Bilbo’s Ring that he found in the Misty Mountains, Karim the Hobbit decided to e...

Magic Number

Jack loves to play with numbers. One day, while he was playing with numbers he found something inter...

Omae Wa Mou Shindeiru

Itachi and Sasuke are trying to beat Kabuto, the caster of an awesome magical spell (or you can say ...

I Did Not Do the Assignment

Professor Petr is very angry over some of his students now-a-days for not doing assignment. He wants...

Unique Relief

Thanos has now figured out how to visit all the houses in the flood-affected area. However, now he h...

Help Lazy Tareq

There is a boy named Tareq Abrar who is very lazy. He likes sleeping. He also likes eating. His moth...

Jhamela, Once Again

You are given n positive integers as an array. Also, you are given an integer k. Now, try to find a ...

Love Letters!

Lately Fahim is getting a lot of love letters. A LOT of love letters. Since he is confused about whi...

Life of Phi

The Great Khami is learning Number Theory. He is very excited to know that Euler’s Totient Function ...

Correct the Sieve

Sieve of Eratosthenes is a fast algorithm for finding prime numbers in larger ranges. According to W...

Distribution of Relief

“Please follow all instructions provided by your local health authorities.” Due to Coronovirus epide...

Playing With Aladdin

Aladdin is a fictional character and the titular protagonist of Walt Disney Pictures’ 31st animated ...

Crypto-Number

Walt and Gus have a great rivalry. Recently Gus has developed a cryptographic system. Walt is trying...

Arrange the Bricks!

You have N bricks two dimensional bricks of the dimension 1 \times 2. The bricks are rotatable i.e. ...

Ishtiaque and the Rabbit

Mr Ishtiaque is in trouble. A few months ago, he bought 2 rabbits. He wanted to have two pet rabbits...

Birthday Gift for SJ

Today is your best friend SJ’s birthday. You want to buy a birthday present for her. You want to buy...

Sofdor Ali and the Puzzle of Weights

Sofdor Ali is one of the most famous scientists of Bangladesh. He is also well known for his puzzle ...

Magician's Offer!

Rosi Vidmun is a greedy landlord who likes to grab as much land as he can. Currently he has P square...