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 7, 2026 17:15zielajzielajScore: 3,416Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 17:143,34417,244,5851,962,000981,0002,535,424
2Feb 7, 2026 17:153,34924,857,9982,947,00002,347,008
3Feb 7, 2026 17:143,40918,399,9072,000,0001,000,0002,347,008
4Feb 7, 2026 17:153,41617,091,6981,002,0002,004,0002,277,376
5Feb 7, 2026 17:143,48216,765,5652,043,0001,021,0002,351,104
6Feb 7, 2026 17:154,22817,143,5113,721,00002,347,008