You are viewing a single comment's thread. Return to all comments →
Java 8
public static long andProduct(long a, long b) { long sum = a & (a+1); for (long i = a+2; i <= b-1; i++) { sum = sum & i ; } return sum; }
Seems like cookies are disabled on this browser, please enable them to open this website
AND Product
You are viewing a single comment's thread. Return to all comments →
Java 8