Created
February 13, 2015 04:43
-
-
Save shohan4556/896c1121753628652666 to your computer and use it in GitHub Desktop.
Hackerearth -- In love with primes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<math.h> | |
int main() | |
{ | |
int tc,n,i,a; | |
while(scanf("%d",&tc)==1){ | |
for(i=1;i<=tc;i++){ | |
scanf("%d",&n); | |
if(n%2==0 && n>=4){ | |
printf("Deepa\n"); | |
} | |
else | |
printf("Arjit\n"); | |
} | |
} | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Goldbach's conjecture is states that every even number is a sum of two odd prime number no need to check its proof just use the method.