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 11:57Yurkov AlekseyYurkov AlekseyScore: 7,368,688Success
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 11:577,337,3636,514,654,6306,456,879,13802,252,800
2Jun 20, 2021 11:577,368,6886,548,201,1686,484,445,13102,252,800
3Jun 20, 2021 11:577,373,2966,549,194,1246,488,500,15902,252,800