Common Divisors

0

0 votes
Easy
Problem

You have to print all the common divisors of two entered numbers.
Input will contain two integer type numbers.
The output will show all the common divisors of the entered numbers.

Time Limit: 5
Memory Limit: 256
Source Limit:
Explanation

Example 1:-
Input:-15 5
Output:-1 5


Example 2:-
Input:-3973 98589
Output:-1


Example 3:-
Input:-1000000 1548900
Output:-1 2 4 5 10 20 25 50 100


Editor Image

?