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 18, 2025 06:54matsuoka-601matsuoka-601Score: 11,638Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2025 06:5411,42227,206,8747,036,0003,015,0002,457,600
2Jan 18, 2025 06:5411,46324,838,9427,061,0003,026,0002,461,696
3Jan 18, 2025 06:5411,48031,781,3398,082,0002,020,0002,469,888
4Jan 18, 2025 06:5411,48529,284,4748,086,0002,021,0002,465,792
5Jan 18, 2025 06:5411,55825,836,1039,154,0001,017,0002,457,600
6Jan 18, 2025 06:5411,59431,892,7068,163,0002,040,0002,465,792
7Jan 18, 2025 06:5411,63826,436,5099,217,0001,024,0002,465,792
8Jan 18, 2025 06:5411,68232,332,8299,252,0001,028,0002,465,792
9Jan 18, 2025 06:5411,68425,950,3539,254,0001,028,0002,469,888
10Jan 18, 2025 06:5411,69327,312,1469,261,0001,029,0002,461,696
11Jan 18, 2025 06:5411,75727,655,95110,346,00002,465,792
12Jan 18, 2025 06:5411,78028,187,73710,366,00002,465,792