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 11, 2025 15:07Alex KentAlex KentScore: 67,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2025 15:0767,13279,346,47958,075,0001,001,0002,289,664
2Jan 11, 2025 15:0767,38582,775,10157,289,0002,010,0002,269,184
3Jan 11, 2025 15:0767,44888,964,72359,354,00002,273,280
4Jan 11, 2025 15:0767,52080,807,57358,411,0001,007,0002,367,488
5Jan 11, 2025 15:0767,52381,853,83259,420,00002,273,280
6Jan 11, 2025 15:0767,54486,012,01958,432,0001,007,0002,277,376
7Jan 11, 2025 15:0767,58481,931,42559,474,00002,281,472
8Jan 11, 2025 15:0767,60584,427,10158,484,0001,008,0002,289,664
9Jan 11, 2025 15:0767,62486,740,30559,509,00002,289,664