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 19:26Ivan BessonovIvan BessonovScore: 17,875Success
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 19:2617,00534,581,13012,969,0001,995,0002,289,664
2May 18, 2024 19:2617,00532,623,24212,969,0001,995,0002,310,144
3May 18, 2024 19:2617,01737,195,70712,979,0001,996,0002,310,144
4May 18, 2024 19:2617,03239,817,07913,989,000999,0002,301,952
5May 18, 2024 19:2617,04743,232,55014,001,0001,000,0002,289,664
6May 18, 2024 19:2617,05032,088,52113,004,0002,000,0002,297,856
7May 18, 2024 19:2617,05131,103,57413,005,0002,000,0002,293,760
8May 18, 2024 19:2617,05539,202,13913,007,0002,001,0002,289,664
9May 18, 2024 19:2617,05632,369,12613,008,0002,001,0002,289,664
10May 18, 2024 19:2617,06840,234,62213,018,0002,002,0002,408,448
11May 18, 2024 19:2617,08443,879,91813,030,0002,004,0002,301,952
12May 18, 2024 19:2617,15028,645,36514,086,0001,006,0002,400,256
13May 18, 2024 19:2617,87541,408,64915,730,00002,306,048
14May 18, 2024 19:2618,04590,436,86615,879,55302,285,568
15May 18, 2024 19:2618,07532,835,26213,918,0001,988,0002,306,048
16May 18, 2024 19:2618,07640,177,81613,919,0001,988,0002,301,952
17May 18, 2024 19:2618,08032,012,91613,922,0001,988,0002,301,952
18May 18, 2024 19:2618,08636,374,33114,922,000994,0002,289,664
19May 18, 2024 19:2618,08833,371,58513,928,0001,989,0002,289,664
20May 18, 2024 19:2618,15983,970,60015,980,02202,273,280
21May 18, 2024 19:2618,29382,585,84416,098,03202,281,472
22May 18, 2024 19:2618,32784,789,83916,127,96502,289,664
23May 18, 2024 19:2618,43084,797,90516,218,02902,285,568
24May 18, 2024 19:2618,45092,307,96716,235,73202,281,472