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 listJan 10, 2025 00:59zielajzielajScore: 3,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 00:593,40620,314,0691,998,000999,0002,285,568
2Jan 10, 2025 00:593,41319,406,0672,002,0001,001,0002,289,664
3Jan 10, 2025 00:593,44117,387,0722,019,0001,009,0002,281,472
4Jan 10, 2025 00:593,44116,878,5072,019,0001,009,0002,289,664
5Jan 10, 2025 00:593,44821,171,4732,023,0001,011,0002,293,760
6Jan 10, 2025 00:593,44820,786,3312,023,0001,011,0002,289,664
7Jan 10, 2025 00:593,46018,958,3851,015,0002,030,0002,293,760
8Jan 10, 2025 00:593,46419,793,3452,032,0001,016,0002,519,040
9Jan 10, 2025 00:593,46719,367,0392,034,0001,017,0002,281,472