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 14:02Alex KentAlex KentScore: 62,826Success
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 14:0262,63479,932,39254,116,0001,002,0002,506,752
2Jan 12, 2025 14:0262,64781,606,86654,127,0001,002,0002,523,136
3Jan 12, 2025 14:0262,66882,494,16753,143,0002,005,0002,383,872
4Jan 12, 2025 14:0262,74184,209,36353,205,0002,007,0002,506,752
5Jan 12, 2025 14:0262,82680,932,22254,282,0001,005,0002,383,872
6Jan 12, 2025 14:0262,88179,296,76954,329,0001,006,0002,387,968
7Jan 12, 2025 14:0262,89479,321,32754,341,0001,006,0002,387,968
8Jan 12, 2025 14:0262,93082,903,56054,372,0001,006,0002,523,136
9Jan 12, 2025 14:0263,15578,381,68455,576,00002,523,136