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 18, 2026 02:41Josu San MartinJosu San MartinScore: 39,874Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 02:4139,79454,774,42334,019,0001,000,0002,445,312
2Jan 18, 2026 02:4139,87454,716,39033,084,0002,005,0002,277,376
3Jan 18, 2026 02:4139,95863,978,85033,154,0002,009,0002,281,472