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 12, 2025 12:49Alex KentAlex KentScore: 66,566Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 12, 2025 12:4966,16682,751,53556,219,0002,007,0002,392,064
2Jan 12, 2025 12:4966,41479,115,66257,437,0001,007,0002,387,968
3Jan 12, 2025 12:4966,45295,925,46958,478,00002,387,968
4Jan 12, 2025 12:4966,53982,042,77957,545,0001,009,0002,379,776
5Jan 12, 2025 12:4966,56680,615,13458,578,00002,392,064
6Jan 12, 2025 12:4966,66485,220,17057,653,0001,011,0002,396,160
7Jan 12, 2025 12:4966,90890,813,82957,882,000997,0002,523,136
8Jan 12, 2025 12:4966,91984,251,14656,893,0001,996,0002,387,968
9Jan 12, 2025 12:4967,00384,608,48056,965,0001,998,0002,383,872