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 listFeb 26, 2025 05:59Eugene ZhydzetskiEugene ZhydzetskiScore: 810,207Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2025 05:59808,725738,934,894709,679,0001,999,0002,486,272
2Feb 26, 2025 05:59810,207740,850,571711,983,000999,0002,330,624
3Feb 26, 2025 05:59810,849739,476,195712,548,000999,0002,469,888