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 listJul 25, 2025 23:13KeefeKeefeScore: 2,982,994Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2025 23:132,973,5162,644,452,5142,614,695,0001,999,0002,273,280
2Jul 25, 2025 23:132,982,9942,651,750,9402,624,036,000999,0002,445,312
3Jul 25, 2025 23:132,989,8972,658,766,4942,630,110,000999,0002,273,280