Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Check if two numbers are co-prime (their HCF is 1).

Medium

Problem Statement

Check if two numbers are co-prime (their HCF is 1).

Sample Input

8, 15

Sample Output

True

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
def are_coprime(): a, b = 8, 15 # Your code here return
Log in or sign up to run or submit your code.Log inSign up
Input
8, 15
Expected Output
True