Easy Beginners Problems > Ad-hoc

>A prime number is a natural number greater than **1** that has no positive divisors other than 1 and itself. First few prime numbers are: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 ........... Your task is to find whether the summation of **N-th** and **M-th** prime number is even or odd.<br> For example , If the input is **2** and **4** then the **2nd** and **4th** prime number are **3** and **7**, and sum is **3 + 7 = 10** .Here 10 is **Even**. So, the answer is **Even**.<br>if input is 1 and 2 then the prime number are **2** and **3**,so **2 + 3 = 5** which is **Odd** Input: ------ There are several test case and **input will be terminated by end of file**.***Total number of test cases will not exceed 50***.<br> Each case contains two integers **N and M(1 ≤ N , M ≤ 10^18)** as described above. Output: ------- For each test case, print either **"Even”** (without quotes) or **“Odd”** (without quotes). If the summation of the **N-th** and **M-th** prime numbers is even then print **“Even”**, otherwise print **“Odd”** Sample Input ------------ 1 2 2 3 Sample Output ------------- Odd Even

Mohibur Rahman

Language |
Time Limit (seconds) |

C | 1.00 |

C++ | 1.00 |

C++14 | 1.00 |

C# | 2.00 |

Go | 2.00 |

Java | 2.00 |

JavaScript | 2.00 |

Objective-C | 2.00 |

Perl | 2.00 |

PHP | 2.00 |

Python | 2.00 |

Python3 | 2.00 |

Ruby | 2.00 |

VB.Net | 2.00 |

Solve/Submission

# | User | Language | Timing |
---|---|---|---|

01 | mir003 | Cpp | 0.00s |

02 | madcoder | Cpp | 0.00s |

03 | shamimjucse | Cpp | 0.00s |

04 | BishalG | Cpp14 | 0.00s |

05 | kissu_pari_na | Cpp | 0.00s |

06 | lsiddiqsunny | Cpp | 0.00s |

07 | anik_JU | Cpp | 0.00s |

08 | _GhOstMan_ | Cpp | 0.00s |

09 | Sagor | Cpp | 0.00s |

10 | hrOarr | Cpp | 0.00s |

11 | subhashis_cse | Cpp | 0.00s |

12 | mahbub07 | Cpp | 0.00s |

13 | Sakhawat_CoU | Cpp | 0.00s |

14 | iamsadee | Cpp | 0.00s |

15 | Foysol_Ahmed | Cpp | 0.00s |

16 | pulak_ict_mbstu | Cpp | 0.00s |

17 | alif_biswas | Cpp | 0.00s |

18 | khmahbub20 | Cpp | 0.00s |

19 | sadat999 | Cpp | 0.00s |

20 | Ansarul_14 | Cpp | 0.00s |

21 | _c_k_r_ | Cpp | 0.00s |

22 | ainan_ahmed | Cpp14 | 0.00s |

23 | emrul | Cpp | 0.00s |

24 | ssavi | Cpp | 0.00s |

25 | Puja1409 | Cpp | 0.00s |

26 | cse_nazmul | Cpp | 0.00s |

27 | kzvd4729 | Cpp | 0.00s |

28 | Trusted_Frustrated | Cpp | 0.00s |

29 | hmruhul | Cpp | 0.00s |

30 | rohijulislam | Cpp | 0.00s |

31 | JubayerSohel | Cpp | 0.00s |

32 | _mHm_ | Cpp | 0.00s |

33 | njrafi | Cpp | 0.00s |

34 | _dipu | Cpp14 | 0.00s |

35 | yasirnabil534 | Cpp | 0.00s |

36 | belal_mbstu | Cpp14 | 0.00s |

37 | Reayz | Cpp | 0.00s |

38 | badhansen123 | Cpp | 0.00s |

39 | rayhan50001 | Cpp | 0.00s |

40 | codebreaker007 | Cpp | 0.00s |

41 | FariD | Cpp | 0.00s |

42 | Mr_adnan | Cpp | 0.00s |

43 | haasib | Cpp | 0.00s |

44 | SakibAlamin | Cpp14 | 0.00s |

45 | gazi93 | Cpp | 0.00s |

46 | uzzal_rahman | Cpp | 0.00s |

47 | booleancode01 | Cpp | 0.00s |

48 | jayed_al_hasan | Cpp | 0.00s |

49 | iammarajul | C | 0.00s |

50 | Zayed | Cpp | 0.00s |

Copyright © 2015-2016 Dev Skill.

Feedback
#### Your feedback is our precious!

## Thank you for providing feedback! Our developers will be happy :)

## Sorry there was a problem when submitting the feedback. Please try again. :(