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 1, 2025 19:59zielajzielajScore: 3,593Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2025 19:573,52324,236,5371,033,0002,067,0002,281,472
2Jan 1, 2025 19:573,52322,450,9761,033,0002,067,0002,461,696
3Jan 1, 2025 20:143,52819,779,6542,070,0001,035,0002,314,240
4Jan 1, 2025 19:423,55620,356,2832,086,0001,043,0002,535,424
5Jan 1, 2025 20:143,57615,269,4461,049,0002,098,0002,297,856
6Jan 1, 2025 19:573,58321,045,0581,051,0002,102,0002,469,888
7Jan 1, 2025 20:143,58819,264,4141,052,0002,105,0002,453,504
8Jan 1, 2025 19:423,59324,551,2401,054,0002,108,0002,461,696
9Jan 1, 2025 19:423,60716,426,2601,058,0002,116,0002,535,424
10Jan 2, 2025 20:263,68318,811,5931,080,0002,161,0002,297,856
11Jan 2, 2025 20:263,68520,134,9131,081,0002,162,0002,461,696
12Jan 2, 2025 20:263,68919,771,9482,164,0001,082,0002,465,792
13Jan 1, 2025 19:593,69318,760,5051,083,0002,167,0002,457,600
14Jan 1, 2025 19:593,71722,244,8131,090,0002,181,0002,535,424
15Jan 1, 2025 19:593,76019,795,6171,103,0002,206,0002,457,600