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 listNov 29, 2022 07:59apuxbtapuxbtScore: 111,210Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 07:59111,151167,814,44597,813,27702,240,512
2Nov 29, 2022 07:59111,210181,242,88297,864,43602,232,320
3Nov 29, 2022 07:59111,345176,657,26497,983,27802,228,224