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 18:58Ivan BessonovIvan BessonovScore: 18,056Success
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 18:5817,21137,024,24213,127,0002,019,0002,330,624
2May 20, 2024 18:5817,21635,576,22614,140,0001,010,0002,289,664
3May 20, 2024 18:5817,21734,830,99114,141,0001,010,0002,289,664
4May 20, 2024 18:5817,26334,705,37014,179,0001,012,0002,289,664
5May 20, 2024 18:5817,32746,741,63214,232,0001,016,0002,334,720
6May 20, 2024 18:5817,33936,076,51313,224,0002,034,0002,289,664
7May 20, 2024 18:5818,05632,641,27213,903,0001,986,0002,289,664
8May 20, 2024 18:5818,07736,988,63813,920,0001,988,0002,285,568
9May 20, 2024 18:5818,12439,820,14214,953,000996,0002,289,664
10May 20, 2024 18:5818,23788,525,36916,048,96302,195,456
11May 20, 2024 18:5818,54064,625,42916,314,96402,318,336
12May 20, 2024 18:5818,89481,532,40716,626,41102,330,624