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 listMar 26, 2024 19:54IhebIhebScore: 69,089Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 26, 2024 19:5468,938130,167,25260,665,35202,232,320
2Mar 26, 2024 19:5469,089116,597,19760,798,29502,232,320
3Mar 26, 2024 19:5469,138126,982,69260,841,21102,232,320