/** * The ENTIRE assignment should be completed within this file */ #include #include #include #include #include #include "pa06.h" /** * Read a uint128 from a string. * This function is provided for your convenience. */ uint128 alphaTou128(const char * str) { uint128 ret = 0; while(*str >= '0' && *str <= '9') { ret *= 10; // "left-shift" a base-ten number ret += (*str - '0'); // add in the units ++str; } return ret; } /** * The caller is responsible for freeing the result */ char * u128ToString(uint128 value) { return NULL; } /** * Test is 'value' is prime. * 'n_threads' is the number of threads to create to complete this computation. * Return TRUE of FALSE. * * LEAK NO MEMORY * * Good luck! */ int primalityTestParallel(uint128 value, int n_threads) { return FALSE; }