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 05:57Robert BurkeRobert BurkeScore: 24,100Success
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 05:5721,14775,845,49618,609,08702,207,744
2Dec 28, 2022 05:5721,23776,395,20618,688,79602,211,840
3Dec 28, 2022 05:5721,28783,256,33118,732,57802,211,840
4Dec 28, 2022 05:5723,97042,767,18519,085,0002,009,0002,379,776
5Dec 28, 2022 05:5724,06742,644,85720,171,0001,008,0002,281,472
6Dec 28, 2022 05:5724,08443,181,65220,185,0001,009,0002,281,472
7Dec 28, 2022 05:5724,10045,772,14119,189,0002,019,0002,473,984
8Dec 28, 2022 05:5724,10643,093,99220,203,0001,010,0002,371,584
9Dec 28, 2022 05:5724,11646,556,37920,212,0001,010,0002,281,472
10Dec 28, 2022 05:5724,13443,857,95520,227,0001,011,0002,371,584
11Dec 28, 2022 05:5724,16648,764,14220,254,0001,012,0002,371,584
12Dec 28, 2022 05:5724,17644,811,35919,249,0002,026,0002,375,680