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 08:05Ivan BessonovIvan BessonovScore: 54,934Success
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 08:0554,664102,000,07948,104,24302,256,896
2May 5, 2024 08:0554,81877,293,65846,230,0002,010,0002,289,664
3May 5, 2024 08:0554,85071,476,36246,257,0002,011,0002,527,232
4May 5, 2024 08:0554,866107,696,19348,281,95702,248,704
5May 5, 2024 08:0554,90371,329,98346,302,0002,013,0002,265,088
6May 5, 2024 08:0554,92871,820,47348,337,00002,289,664
7May 5, 2024 08:0554,93482,482,78247,335,0001,007,0002,289,664
8May 5, 2024 08:0554,941114,195,12048,348,31302,265,088
9May 5, 2024 08:0554,96171,449,65647,359,0001,007,0002,273,280
10May 5, 2024 08:0555,05378,962,80247,438,0001,009,0002,289,664
11May 5, 2024 08:0555,14074,074,11148,523,00002,289,664
12May 5, 2024 08:0555,17475,438,12848,553,00002,289,664