Ejemplo n.º 1
0
int main(void) {
	long long n;
	readInputData(&n);

	writeOutputData(countPrimes(n), n);

	return 0;
}
Ejemplo n.º 2
0
Parser::Parser( const QString &df )
{
    openFileSuccess = checkDataFileOpen(df);
    inputData = "";
    if(openFileSuccess){ //check that string passed is valid
        openFileSuccess = readInputData();
        openFileSuccess = writeOutputData();
    }
}