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 18, 2024 20:55Ivan BessonovIvan BessonovScore: 17,094Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 20:5516,97843,619,11212,949,0001,992,0002,289,664
2May 18, 2024 20:5516,98534,496,72312,954,0001,993,0002,289,664
3May 18, 2024 20:5517,00337,135,58612,968,0001,995,0002,326,528
4May 18, 2024 20:5517,01737,284,86813,977,000998,0002,326,528
5May 18, 2024 20:5517,03136,035,61012,989,0001,998,0002,289,664
6May 18, 2024 20:5517,05343,148,25213,006,0002,001,0002,424,832
7May 18, 2024 20:5517,05531,777,19013,007,0002,001,0002,330,624
8May 18, 2024 20:5517,07431,567,55613,022,0002,003,0002,326,528
9May 18, 2024 20:5517,07536,797,46813,023,0002,003,0002,314,240
10May 18, 2024 20:5517,07631,717,53213,024,0002,003,0002,289,664
11May 18, 2024 20:5517,08236,412,22213,028,0002,004,0002,400,256
12May 18, 2024 20:5517,08430,879,09913,030,0002,004,0002,289,664
13May 18, 2024 20:5517,09430,959,81814,041,0001,002,0002,322,432
14May 18, 2024 20:5517,10234,964,98914,047,0001,003,0002,289,664
15May 18, 2024 20:5517,10632,995,48213,046,0002,007,0002,285,568
16May 18, 2024 20:5517,13640,706,10613,070,0002,010,0002,318,336
17May 18, 2024 20:5517,33379,387,79415,253,04102,297,856
18May 18, 2024 20:5517,37873,081,11015,292,95702,183,168
19May 18, 2024 20:5517,40864,196,03015,319,10302,183,168
20May 18, 2024 20:5517,76340,966,63814,589,0001,042,0002,326,528
21May 18, 2024 20:5517,78780,945,85115,652,54202,301,952
22May 18, 2024 20:5517,84942,895,93214,660,0001,047,0002,318,336
23May 18, 2024 20:5518,15881,539,58115,978,71102,179,072
24May 18, 2024 20:5518,18595,457,16616,002,53102,174,976