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 20, 2021 19:25Yuriy LyfenkoYuriy LyfenkoScore: 112,303Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 19:25111,842167,017,61098,420,87402,211,840
2Jun 20, 2021 19:25112,303173,317,68598,826,62102,215,936
3Jun 20, 2021 19:25112,620162,891,15499,105,77702,215,936