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 23, 2025 08:14wainCGPwainCGPScore: 48,216Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2025 08:1448,01565,016,02037,223,0005,030,0002,289,664
2Feb 23, 2025 08:1448,21670,340,36536,369,0006,061,0002,473,984
3Feb 23, 2025 08:1448,38664,774,72137,511,0005,069,0002,490,368