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 listFeb 15, 2024 17:18Bernard TeoBernard TeoScore: 55,495Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 17:1845,335121,970,58239,894,98802,228,224
2Feb 15, 2024 17:1845,750116,807,52540,260,01102,236,416
3Feb 15, 2024 17:1845,941110,096,84640,427,68902,232,320
4Feb 15, 2024 17:1952,153121,790,24045,894,77502,236,416
5Feb 15, 2024 17:1954,551104,463,71648,004,80302,256,896
6Feb 15, 2024 17:1955,315116,517,99648,676,88802,232,320
7Feb 15, 2024 17:1955,450120,082,77748,796,24102,244,608
8Feb 15, 2024 17:1955,495112,323,46848,835,48002,228,224
9Feb 15, 2024 17:1956,034124,476,96549,309,98502,244,608
10Feb 15, 2024 17:1956,042121,882,63849,316,84702,232,320
11Feb 15, 2024 17:1956,197132,188,62749,453,47502,236,416
12Feb 15, 2024 17:1956,222123,491,71749,475,14402,232,320
13Feb 15, 2024 17:1956,310129,936,71249,552,98302,232,320
14Feb 15, 2024 17:1956,372125,450,66549,607,75702,224,128
15Feb 15, 2024 17:1956,676122,301,33949,874,66802,232,320