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 | duronto20 | Cpp | 0.00s |

02 | I_See_You | Cpp | 0.00s |

03 | Puja1409 | Cpp | 0.00s |

04 | Gang_Of_Three_01 | Cpp | 0.00s |

05 | ssavi | Cpp | 0.00s |

06 | badhansen123 | Cpp | 0.00s |

07 | subhashis_cse | Cpp | 0.00s |

08 | Zayed | Cpp | 0.00s |

09 | foysal_007 | Cpp | 0.00s |

10 | Saimum_140128 | Cpp | 0.00s |

11 | codebreaker007 | Cpp | 0.00s |

12 | yakin | Cpp | 0.00s |

13 | Nazmul_WUB | Cpp | 0.00s |

14 | Trusted_Frustrated | Cpp | 0.00s |

15 | mhiceiuk | Cpp | 0.00s |

16 | njrafi | Cpp | 0.00s |

17 | cse_nazmul | Cpp | 0.00s |

18 | BishalG | Cpp14 | 0.00s |

19 | emrul | Cpp | 0.00s |

20 | Foysol_Ahmed | Cpp | 0.00s |

21 | FahimSifnatul | Cpp | 0.00s |

22 | tariqiitju | Cpp | 0.00s |

23 | sazal_dev | Cpp | 0.00s |

24 | Tanmoy | Cpp | 0.00s |

25 | ronok_cse | Cpp | 0.00s |

26 | shamimjucse | Cpp | 0.00s |

27 | Mr_adnan | Cpp | 0.00s |

28 | rohijulislam | Cpp | 0.00s |

29 | uzzal_rahman | Cpp | 0.00s |

30 | robin_aust | Cpp | 0.00s |

31 | gazi93 | Cpp | 0.00s |

32 | yasirnabil534 | Cpp | 0.00s |

33 | Logic_Hunter | Cpp | 0.00s |

34 | iamsadee | Cpp | 0.00s |

35 | rakibul1415 | Cpp | 0.00s |

36 | pulak_ict_mbstu | Cpp | 0.00s |

37 | Sagor | Cpp | 0.00s |

38 | belal_mbstu | Cpp14 | 0.00s |

39 | xb_saykat | Cpp | 0.00s |

40 | mahbub07 | Cpp | 0.00s |

41 | fayedanik | Cpp | 0.00s |

42 | giash_uddin | Cpp14 | 0.00s |

43 | motaleb_ICT | Cpp | 0.00s |

44 | marineCoder | Cpp | 0.00s |

45 | onucsecu | Cpp | 0.00s |

46 | ashraful_haque | Cpp14 | 0.00s |

47 | Reayz | Cpp | 0.00s |

48 | FariD | Cpp | 0.00s |

49 | haasib | Cpp | 0.00s |

50 | lazyfahim | 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. :(