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 listFeb 24, 2025 14:06wainCGPwainCGPScore: 38,515Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 24, 2025 14:0638,32864,264,12829,641,0004,088,0002,326,528
2Feb 24, 2025 14:0638,48864,740,23129,885,0003,984,0002,469,888
3Feb 24, 2025 14:0638,50161,614,89327,902,0005,979,0002,506,752
4Feb 24, 2025 14:0638,51359,447,73629,904,0003,987,0002,330,624
5Feb 24, 2025 14:0638,51561,508,61328,909,0004,984,0002,482,176
6Feb 24, 2025 14:0638,51663,219,67728,910,0004,984,0002,330,624
7Feb 24, 2025 14:0638,52368,801,33227,918,0005,982,0002,289,664
8Feb 24, 2025 14:0638,55960,670,88828,942,0004,990,0002,523,136
9Feb 24, 2025 14:0638,90357,189,28929,201,0005,034,0002,289,664