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 06:01Eugene ZhydzetskiEugene ZhydzetskiScore: 810,865Success
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 06:01803,063735,663,821704,696,0001,999,0002,469,888
2Feb 26, 2025 06:01810,865739,437,448712,562,000999,0002,330,624
3Feb 26, 2025 06:01815,741739,745,185715,853,0001,999,0002,330,624