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 06:06apuxbtapuxbtScore: 31,348Success
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 06:0631,05753,158,90426,318,0001,012,0002,379,776
2Dec 1, 2022 06:0631,18252,691,65626,424,0001,016,0002,392,064
3Dec 1, 2022 06:0631,19149,601,00327,448,00002,379,776
4Dec 1, 2022 06:0631,19349,668,40926,434,0001,016,0002,387,968
5Dec 1, 2022 06:0631,29849,446,17826,522,0001,020,0002,379,776
6Dec 1, 2022 06:0631,33456,589,35526,553,0001,021,0002,383,872
7Dec 1, 2022 06:0631,34852,333,15326,565,0001,021,0002,383,872
8Dec 1, 2022 06:0631,35855,627,35326,573,0001,022,0002,265,088
9Dec 1, 2022 06:0631,42652,232,29426,631,0001,024,0002,387,968
10Dec 1, 2022 06:0631,50497,764,55927,723,62302,228,224
11Dec 1, 2022 06:0631,53687,946,70427,751,33802,228,224
12Dec 1, 2022 06:0631,62999,592,33027,833,13802,232,320