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 28, 2022 02:39Robert BurkeRobert BurkeScore: 27,386Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 02:3926,71186,093,52823,505,72002,228,224
2Dec 28, 2022 02:3926,72398,387,58623,516,47402,232,320
3Dec 28, 2022 02:3926,82391,713,80023,604,24402,228,224
4Dec 28, 2022 02:3927,28449,668,66323,010,0001,000,0002,387,968
5Dec 28, 2022 02:3927,33847,560,32723,055,0001,002,0002,273,280
6Dec 28, 2022 02:3927,35845,750,78723,072,0001,003,0002,383,872
7Dec 28, 2022 02:3927,38647,427,29323,096,0001,004,0002,392,064
8Dec 28, 2022 02:3927,39851,422,59923,106,0001,004,0002,387,968
9Dec 28, 2022 02:3927,40748,007,18223,114,0001,004,0002,535,424
10Dec 28, 2022 02:3927,43949,889,61621,128,0003,018,0002,273,280
11Dec 28, 2022 02:3927,44848,789,56422,142,0002,012,0002,392,064
12Dec 28, 2022 02:3927,47749,376,52322,165,0002,015,0002,273,280