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:36wainCGPwainCGPScore: 36,611Success
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:3636,43657,308,20028,056,0004,008,0002,510,848
2Feb 24, 2025 14:3636,44958,922,49227,064,0005,011,0002,392,064
3Feb 24, 2025 14:3636,54754,784,28627,136,0005,025,0002,330,624
4Feb 24, 2025 14:3636,59459,125,55028,178,0004,025,0002,322,432
5Feb 24, 2025 14:3636,61154,237,94028,191,0004,027,0002,494,464
6Feb 24, 2025 14:3636,65056,348,72927,213,0005,039,0002,490,368
7Feb 24, 2025 14:3636,66757,156,09127,226,0005,041,0002,334,720
8Feb 24, 2025 14:3636,72859,351,23327,271,0005,050,0002,506,752
9Feb 24, 2025 14:3636,73666,723,21927,277,0005,051,0002,428,928