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 listMay 5, 2024 09:16Ivan BessonovIvan BessonovScore: 45,561Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 09:1645,29766,876,60937,868,0001,993,0002,265,088
2May 5, 2024 09:1645,35365,870,40338,914,000997,0002,273,280
3May 5, 2024 09:1645,36666,499,10737,926,0001,996,0002,289,664
4May 5, 2024 09:1645,48261,854,21339,024,0001,000,0002,375,680
5May 5, 2024 09:1645,52063,017,83839,057,0001,001,0002,289,664
6May 5, 2024 09:1645,54966,023,71238,079,0002,004,0002,289,664
7May 5, 2024 09:1645,56165,721,54738,090,0002,004,0002,289,664
8May 5, 2024 09:1645,57861,237,86238,104,0002,005,0002,289,664
9May 5, 2024 09:1645,60363,377,75438,125,0002,006,0002,289,664
10May 5, 2024 09:1645,899115,482,88840,391,46802,260,992
11May 5, 2024 09:1645,94396,379,51640,430,21302,256,896
12May 5, 2024 09:1646,012105,749,45940,490,98102,265,088