Problem list
Log in
#r03095 · Online Judge > GoldOJ

Coprime Test

Bronze II 2.0 s 256 MB

Two positive integers $a$ and $b$ are given. Print coprime if their greatest common divisor is $1$, otherwise print no.

Input

One line: two integers $a$ and $b$ ($2 \le a, b \le 100000$).

Output

Print coprime or no.

Example 1

Input
8 11
Output
coprime

Example 2

Input
12 18
Output
no
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code