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:09Ivan BessonovIvan BessonovScore: 17,424Success
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:0717,01434,035,75012,976,0001,996,0002,289,664
2May 18, 2024 20:0717,02334,258,92013,982,000998,0002,289,664
3May 18, 2024 20:0717,02440,850,51513,983,000998,0002,289,664
4May 18, 2024 20:0917,03039,261,88412,988,0001,998,0002,289,664
5May 18, 2024 20:0917,03232,049,69212,990,0001,998,0002,322,432
6May 18, 2024 20:0717,06038,978,41814,013,0001,000,0002,289,664
7May 18, 2024 20:0717,06832,500,59713,018,0002,002,0002,453,504
8May 18, 2024 20:0917,07443,944,84013,022,0002,003,0002,326,528
9May 18, 2024 20:0917,07731,112,04713,025,0002,003,0002,289,664
10May 18, 2024 20:0917,09737,773,24713,039,0002,006,0002,322,432
11May 18, 2024 20:0717,11429,756,81213,052,0002,008,0002,326,528
12May 18, 2024 20:0917,15532,080,65514,090,0001,006,0002,289,664
13May 18, 2024 20:0717,42463,942,06315,333,01002,179,072
14May 18, 2024 20:0917,42594,076,21715,334,09102,179,072
15May 18, 2024 20:0917,44365,861,25915,350,02502,187,264
16May 18, 2024 20:0717,87337,867,92815,728,00002,289,664
17May 18, 2024 20:0917,92036,671,63614,719,0001,051,0002,334,720
18May 18, 2024 20:0717,94035,728,47015,787,00002,289,664
19May 18, 2024 20:0918,06835,567,23714,907,000993,0002,289,664
20May 18, 2024 20:0918,07733,301,79613,920,0001,988,0002,318,336
21May 18, 2024 20:0718,08340,515,44513,924,0001,989,0002,326,528
22May 18, 2024 20:0718,18462,818,83716,001,61802,179,072
23May 18, 2024 20:0718,24490,141,42216,054,76702,179,072
24May 18, 2024 20:0918,31481,843,38716,115,95102,301,952