Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listDec 1, 2022 07:53apuxbtapuxbtScore: 31,706Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 07:5331,45653,386,26926,656,0001,025,0002,289,664
2Dec 1, 2022 07:5331,53092,224,69327,746,23702,252,800
3Dec 1, 2022 07:5331,54385,843,35027,758,15502,252,800
4Dec 1, 2022 07:5331,592110,452,45627,800,53502,252,800
5Dec 1, 2022 07:5331,70054,537,81827,896,00002,527,232
6Dec 1, 2022 07:5331,70157,326,91825,905,0001,992,0002,371,584
7Dec 1, 2022 07:5331,70653,713,46626,905,000996,0002,289,664
8Dec 1, 2022 07:5331,73451,979,61725,932,0001,994,0002,527,232
9Dec 1, 2022 07:5331,74150,834,58326,935,000997,0002,289,664
10Dec 1, 2022 07:5331,86350,209,05327,038,0001,001,0002,289,664
11Dec 1, 2022 07:5331,88252,827,40027,054,0001,002,0002,289,664
12Dec 1, 2022 07:5331,92649,427,62226,089,0002,006,0002,289,664