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:10Bernard TeoBernard TeoScore: 51,405Success
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:1050,971127,585,41044,854,67802,224,128
2Feb 15, 2024 17:1551,092108,214,62644,960,62702,228,224
3Feb 15, 2024 17:1551,111104,716,75444,978,03802,236,416
4Feb 15, 2024 17:1051,405129,096,92945,236,22802,232,320
5Feb 15, 2024 17:1553,312111,120,46946,914,57502,224,128
6Feb 15, 2024 17:1064,764122,999,39156,992,35002,232,320