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 listFeb 6, 2026 21:15vahookvahookScore: 3,444Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 21:153,42024,627,7551,003,0002,007,0002,277,376
2Feb 6, 2026 21:153,43015,114,6511,006,0002,012,0002,277,376
3Feb 6, 2026 21:153,44120,046,1551,009,0002,019,0002,498,560
4Feb 6, 2026 21:153,44117,123,8731,009,0002,019,0002,498,560
5Feb 6, 2026 21:153,44419,970,8481,010,0002,021,0002,490,368
6Feb 6, 2026 21:153,44421,874,1471,010,0002,021,0002,490,368
7Feb 6, 2026 21:153,44717,648,1351,011,0002,022,0002,494,464
8Feb 6, 2026 21:153,46722,231,9231,017,0002,034,0002,498,560
9Feb 6, 2026 21:153,47518,732,8981,019,0002,039,0002,498,560