We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
1 and 4 are not in the range
and 3511 is in the range which forms only 1 set and when you take the XOR of the 'inRange' elements you get 1 more set of prime number.
So 1+1=2
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Prime XOR
You are viewing a single comment's thread. Return to all comments →
1 and 4 are not in the range and 3511 is in the range which forms only 1 set and when you take the XOR of the 'inRange' elements you get 1 more set of prime number. So 1+1=2