yukxg/cs362-lab-2-prime-numbers
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
use bitsets as our datastructure and message: #include <bitset> bitset<range> bits; bits.set (); // sets all bits to 1 bits.flip (); // flips all bits bits.set (int index, bool true_or_false); // set a bit to 1 or 0 our program: make a class that can send() and recv() using the bitsets bitset class can return as long data type to send over network once recv'd, we can take that long and convert back to bitset then we're able to sieve the bits out (index + offset) offset would be 2 because at index 0, we're looking at int value of 2
About
Automatically exported from code.google.com/p/cs362-lab-2-prime-numbers
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published