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 20, 2024 21:07Ivan BessonovIvan BessonovScore: 15,815Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 21:0715,444107,422,58313,590,32902,199,552
2May 20, 2024 21:0715,55479,240,37813,687,68402,203,648
3May 20, 2024 21:0715,79031,244,77112,903,000992,0002,334,720
4May 20, 2024 21:0715,79339,716,29412,906,000992,0002,342,912
5May 20, 2024 21:0715,80035,949,40511,918,0001,986,0002,289,664
6May 20, 2024 21:0715,81135,425,53312,921,000993,0002,289,664
7May 20, 2024 21:0715,81531,959,61311,929,0001,988,0002,289,664
8May 20, 2024 21:0715,81630,901,05711,930,0001,988,0002,285,568
9May 20, 2024 21:0715,87438,162,49411,974,0001,995,0002,289,664
10May 20, 2024 21:0715,91032,955,03012,001,0002,000,0002,347,008
11May 20, 2024 21:0715,93139,133,39312,017,0002,002,0002,338,816
12May 20, 2024 21:0716,08451,207,11214,154,14702,199,552