OpenGenus / cosmos

World's largest Contributor driven code dataset | Used in Quark Search Engine, @OpenGenus IQ, OpenGenus Visual Project
http://internship.opengenus.org
GNU General Public License v3.0
13.58k stars 3.69k forks source link

Codechef (XORIER) Problem solution in C #4617

Open ritish099 opened 4 years ago

ritish099 commented 4 years ago

This is a(n):

Details:

Chef is stuck at the following problem. Help him solve it!

Chef has a sequence of integers A1,A2,…,AN. He should find the number of pairs (i,j) such that 1≤i<j≤N and the bitwise XOR of Ai and Aj can be written as a sum of two (not necessarily different) prime numbers with the same parity (both odd or both even).

ritish099 commented 4 years ago

@AdiChat review it sir