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 listJun 18, 2021 17:57alex3dalex3dScore: 64,266Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 20:0364,123114,770,98956,428,21202,260,992
2Jun 18, 2021 20:0364,128125,639,00756,432,33802,252,800
3Jun 18, 2021 20:0364,243119,859,47956,533,60302,252,800
4Jun 18, 2021 17:5764,266110,424,31956,553,69002,256,896
5Jun 18, 2021 17:5764,331113,006,86756,611,21802,256,896
6Jun 18, 2021 17:5764,459120,262,26156,723,69502,248,704