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 11:14Johan SannemoJohan SannemoScore: 15,807Success
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 11:1415,61131,195,30812,682,0001,056,0002,367,488
2Jan 20, 2026 11:1415,78630,859,21411,908,0001,984,0002,351,104
3Jan 20, 2026 11:1415,79433,466,53911,914,0001,985,0002,355,200
4Jan 20, 2026 11:1415,80334,534,71210,927,0002,980,0002,289,664
5Jan 20, 2026 11:1415,80731,639,02511,923,0001,987,0002,347,008
6Jan 20, 2026 11:1415,80733,364,84111,923,0001,987,0002,355,200
7Jan 20, 2026 11:1415,80833,474,92111,924,0001,987,0002,351,104
8Jan 20, 2026 11:1415,81840,778,59411,932,0001,988,0002,289,664
9Jan 20, 2026 11:1415,88032,964,92111,978,0001,996,0002,289,664