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 17, 2021 17:52Yuriy LyfenkoYuriy LyfenkoScore: 158,753Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 17:52157,746212,725,921138,816,64302,211,840
2Jun 17, 2021 17:52158,753201,273,747139,702,89802,224,128
3Jun 17, 2021 17:52158,894193,741,498139,826,71902,215,936