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 20, 2026 00:25Johan SannemoJohan SannemoScore: 26,572Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 00:2526,42845,113,94622,246,0001,011,0002,277,376
2Jan 20, 2026 00:2526,57246,913,35822,367,0001,016,0002,510,848
3Jan 20, 2026 00:2526,66744,923,77222,447,0001,020,0002,273,280