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 4, 2026 21:10vahookvahookScore: 3,566Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 21:093,48523,873,1491,022,0002,045,0002,498,560
2Feb 4, 2026 21:103,48924,395,9331,023,0002,047,0002,498,560
3Feb 4, 2026 21:093,52618,427,2731,034,0002,069,0002,498,560
4Feb 4, 2026 21:093,56422,770,7061,045,0002,091,0002,498,560
5Feb 4, 2026 21:103,56619,611,2001,046,0002,092,0002,498,560
6Feb 4, 2026 21:103,57020,248,6721,047,0002,095,0002,498,560
7Feb 4, 2026 21:103,57324,433,9071,048,0002,096,0002,494,464
8Feb 4, 2026 21:103,57617,370,8171,049,0002,098,0002,535,424
9Feb 4, 2026 21:103,62426,912,6261,063,0002,126,0002,498,560