Skip to content

Instantly share code, notes, and snippets.

@shohan4556
Created February 13, 2015 04:43
Show Gist options
  • Select an option

  • Save shohan4556/896c1121753628652666 to your computer and use it in GitHub Desktop.

Select an option

Save shohan4556/896c1121753628652666 to your computer and use it in GitHub Desktop.
Hackerearth -- In love with primes
#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;
}
@shohan4556

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment