For Loop FTW You are given an integer N which can be represnted as the product of two positive integers. $ N = a_... |

N-th Prime In this problem, you will have to print the $n$-th prime number. The first few prime numbers are giv... |

Life of Phi The Great Khami is learning Number Theory. He is very excited to know that Euler's Totient Function ... |

Prime Factors Given an integer N, can you determine its prime factors? |

Hidden Graph There is an unweighted, undirected hidden graph. You are given an integer range from L to R. There a... |

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+b is ... |

Rivalry Friends Ryo and his girlfriend love to think about challenges. One day his girlfriend gave him a challenge t... |

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

K-Th Root You will be given Q queries. In each query, you will be given two positive integers A and B. You hav... |

Switches Technology is going ahead very fast. How can we know what will we get in future? One day you met a g... |

A Lack of Common Divisors Given a positive integer N, determine how many of the integers between 1 and N are co-prime with N. ... |

Fast Co-Prime Two numbers A and B are called co-prime if the only common positive factor of the two numbers is 1. ... |

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

Sum of GCD and LCM The greatest common divisor (GCD) of two integers, is the largest integer that divides both of the i... |

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

Is It a Perfect Square? Given some numbers, can you tell, if the product of these numbers are a perfect square or not? A num... |

Left Prime Prime numbers are the ones which can only be divided by 1 and the number itself. 2, 3, 5, 7, 11, 13 ... |

Secret Meeting The world is terrified by Pandas! After a miraculous chemical explosion, they became smarter; and ev... |

Chowdhury Saheb & the Numbers You like short description of problems? Me too! Let's go to an easy problem. You are given an array ... |

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

Equation Equals Hazards You are given the equation, GCD(A,M) = 1. You have to determine whether there exists at least one in... |

Oh Functions Letâ€™s define functions f and g as: f(x) = 2 * ( f(x-1) + g(x-1) - 1 ) * ( f(x-1) + g(x-1) - 3 ) + 12... |

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

Zacob the Batsman It's known that Zacob is a reliable batsman of LU CSE Cricket Team. Also as long as he is on the cre... |

Largest Prime A positive integer number n is called a prime number, if it is only divisible by 1 and n itself, whe... |

2Sat, Adhoc, ApolloneasTheorem, Backtracking, BFS, Bignum, BinarySearch, BipartiteMatching, Bitmask, BruteForce, ChineseRemainderTheorem, Combinatorics, ConvexHull, CutVertex, DataStructure, DFS, DigitDP, DisjointSets, DivideAndConquer, DP, Eertree, EulerTour, ExpectedValue, FenwickTree, FFT, Flow, Game, GCD, Geometry, Graph, Greedy, Hashing, HeavyLightDecomposition, Implementation, InclusionExclusion, Interactive, KnuthMorrisPratt, LowestCommonAncestor, Math, Matrix, MatrixExponentiation, MergeSortTree, ModularExponentiation, MOSAlgorithm, MST, NTT, NumberTheory, Parsing, PersistentLiChaoTree, PersistentSegmentTree, PollardRho, PriorityQueue, Probability, Queue, RabinMiller, RangeOrderStatistics, Scheduling, SegmentTree, ShortestPath, Simulation, Sorting, SparseTable, SpragueGrundyTheorem, SqrtDecomposition, Stack, String, StronglyConnectedComponents, SuffixStructure, TernarySearch, Tree, Trie, TwoPointer, WaveletTree

Toph uses cookies. By continuing you agree to our Cookie Policy.