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 19:36Ivan BessonovIvan BessonovScore: 15,665Success
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 19:3615,53830,130,54213,673,00002,289,664
2May 20, 2024 19:3615,54234,620,09212,625,0001,052,0002,289,664
3May 20, 2024 19:3615,56825,475,68312,647,0001,053,0002,338,816
4May 20, 2024 19:3615,57832,586,14313,709,00002,347,008
5May 20, 2024 19:3615,63430,727,81313,758,00002,351,104
6May 20, 2024 19:3615,63841,621,75813,761,00002,334,720
7May 20, 2024 19:3615,66530,618,54012,725,0001,060,0002,338,816
8May 20, 2024 19:3615,83156,208,14813,930,90102,195,456
9May 20, 2024 19:3615,83455,598,99113,933,72302,207,744
10May 20, 2024 19:3615,89483,536,47013,986,82102,191,360
11May 20, 2024 19:3616,08137,122,26113,141,0001,010,0002,441,216
12May 20, 2024 19:3616,27240,707,50212,274,0002,045,0002,289,664