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 listJan 20, 2025 06:20Ian MckibbenIan MckibbenScore: 54,624Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2025 06:2054,26673,522,87846,738,0001,016,0002,437,120
2Jan 20, 2025 06:2054,37070,315,15245,853,0001,993,0002,531,328
3Jan 20, 2025 06:2054,54069,947,80746,996,000999,0002,269,184
4Jan 20, 2025 06:2054,62068,938,45447,065,0001,001,0002,269,184
5Jan 20, 2025 06:2054,62469,854,23247,068,0001,001,0002,531,328
6Jan 20, 2025 06:2054,62881,560,71747,072,0001,001,0002,437,120
7Jan 20, 2025 06:2054,64268,870,05147,084,0001,001,0002,531,328
8Jan 20, 2025 06:2054,70273,163,42146,133,0002,005,0002,437,120
9Jan 20, 2025 06:2054,79773,036,06547,217,0001,004,0002,428,928