Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mainmodule PrimalityChecker
- {
- // Main chare
- mainchare Main
- {
- entry Main(CkArgMsg *m);
- // Method which is called once a particular number has been tested for primality.
- // Once all numbers are tested, this method displays the entire array with the
- // result for each number.
- entry void Done(int indexInArray, bool result);
- };
- chare CheckPrimality
- {
- entry CheckPrimality(CProxy_Main mainProxy, int length, long numbers[length],
- int startIndex);
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement