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 03:28Josu San MartinJosu San MartinScore: 20,595Success
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 03:2820,54342,684,28016,070,0002,008,0002,363,392
2Jan 18, 2026 03:2820,59546,978,55915,104,0003,020,0002,441,216
3Jan 18, 2026 03:2820,75044,521,55217,246,0001,014,0002,363,392