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 listOct 4, 2023 12:26Robert BurkeRobert BurkeScore: 21,573Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:2618,05278,730,51315,886,10502,228,224
2Oct 4, 2023 12:2618,10671,681,66615,933,61302,240,512
3Oct 4, 2023 12:2618,21794,220,51216,031,21002,224,128
4Oct 4, 2023 12:2621,52041,267,66917,942,000996,0002,387,968
5Oct 4, 2023 12:2621,54540,369,03516,965,0001,995,0002,502,656
6Oct 4, 2023 12:2621,56642,679,91417,980,000998,0002,535,424
7Oct 4, 2023 12:2621,57343,004,02617,985,000999,0002,490,368
8Oct 4, 2023 12:2621,67038,670,47316,059,0003,011,0002,387,968
9Oct 4, 2023 12:2621,67238,277,47117,064,0002,007,0002,404,352
10Oct 4, 2023 12:2621,74339,155,99317,120,0002,014,0002,273,280
11Oct 4, 2023 12:2621,86442,850,22718,228,0001,012,0002,392,064
12Oct 4, 2023 12:2621,91337,255,94218,269,0001,014,0002,387,968