 
 	int numPrimeNumbers = 0;
 	for (int i = 0; i < cResults; i++) {
-		if (READ_BIT_CHAR_ARRAY(cIsPrime, i)) {
+		if (READ_BIT_INT_ARRAY(cIsPrime, i)) {
 			printf("%i, ", i * 2 + 1);
 			numPrimeNumbers++;
 		}

    return cudaStatus;
}


int main()
{
	char *cIsPrime = (char *)malloc(cResultCharArraySize);
	memset((void*)cIsPrime, 0x00, cResultCharArraySize);

	clock_t tStart = clock();
	cudaError_t cudaStatus = calculatePrimeCuda(cIsPrime);



    // Launch a kernel on the GPU with one thread for each element.
	calculatePrimeSingle <<<cNumBlocks, cMaxThreads >> >(dev_isPrime);

	//clearAll << <cNumBlocks, cMaxThreads >> >(dev_isPrime);
	//setAll << <cNumBlocks, cMaxThreads >> >(dev_isPrime);

    // Check for any errors launching the kernel
