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 23, 2025 15:198QTK8QTKScore: 39,840Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 15:1939,68859,327,84831,932,0002,993,0002,347,008
2Jan 23, 2025 15:1939,84061,342,21231,053,0004,006,0002,445,312
3Jan 23, 2025 15:1940,03557,911,27131,205,0004,026,0002,461,696