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 19, 2025 19:48matsuoka-601matsuoka-601Score: 8,993Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2025 19:478,78125,871,5867,727,00002,424,832
2Jan 19, 2025 19:478,83422,862,0346,664,0001,110,0002,424,832
3Jan 19, 2025 19:478,83928,546,9665,556,0002,222,0002,433,024
4Jan 19, 2025 19:488,87325,876,3065,577,0002,231,0002,424,832
5Jan 19, 2025 19:478,96520,469,6716,903,000986,0002,506,752
6Jan 19, 2025 19:478,96821,985,6255,919,0001,973,0002,433,024
7Jan 19, 2025 19:478,97521,113,8205,924,0001,974,0002,424,832
8Jan 19, 2025 19:478,98027,224,9826,915,000987,0002,531,328
9Jan 19, 2025 19:478,98523,510,8004,942,0002,965,0002,420,736
10Jan 19, 2025 19:478,99227,555,7815,935,0001,978,0002,531,328
11Jan 19, 2025 19:478,99323,797,4105,936,0001,978,0002,347,008
12Jan 19, 2025 19:478,99324,917,9276,925,000989,0002,428,928
13Jan 19, 2025 19:478,99723,884,9505,938,0001,979,0002,412,544
14Jan 19, 2025 19:478,99822,345,0594,949,0002,969,0002,269,184
15Jan 19, 2025 19:478,99824,318,4385,939,0001,979,0002,428,928
16Jan 19, 2025 19:479,00222,797,7777,922,00002,531,328
17Jan 19, 2025 19:479,00321,278,2126,933,000990,0002,420,736
18Jan 19, 2025 19:489,01025,628,5195,947,0001,982,0002,428,928
19Jan 19, 2025 19:489,01625,091,3715,951,0001,983,0002,424,832
20Jan 19, 2025 19:479,02525,329,5785,673,0002,269,0002,531,328
21Jan 19, 2025 19:479,03124,117,5224,967,0002,980,0002,428,928