in java , is their any thing like bitset class so that we can conpute more prime numbers.
https://www.tutorialspoint.com/java/java_bitset_class.htm
i think this will help