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 18, 2025 07:10Ian MckibbenIan MckibbenScore: 108,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2025 07:10108,130127,711,90893,151,0002,003,0002,289,664
2Jan 18, 2025 07:10108,582121,644,62994,547,0001,005,0002,289,664
3Jan 18, 2025 07:10108,665120,720,90694,619,0001,006,0002,289,664
4Jan 18, 2025 07:10108,701122,392,56594,651,0001,006,0002,289,664
5Jan 18, 2025 07:10108,715127,223,67095,669,00002,289,664
6Jan 18, 2025 07:10108,763117,164,31294,704,0001,007,0002,289,664
7Jan 18, 2025 07:10108,941127,788,71693,871,0001,997,0002,289,664
8Jan 18, 2025 07:10108,943127,696,67193,873,0001,997,0002,289,664
9Jan 18, 2025 07:10108,951125,123,08594,879,000998,0002,289,664