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 04:25vahookvahookScore: 3,383Success
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 04:253,35619,548,039984,0001,969,0002,502,656
2Feb 7, 2026 04:253,37320,644,573989,0001,979,0002,498,560
3Feb 7, 2026 04:253,38224,189,825992,0001,984,0002,498,560
4Feb 7, 2026 04:253,38321,345,441992,0001,985,0002,498,560
5Feb 7, 2026 04:253,38321,114,321992,0001,985,0002,502,656
6Feb 7, 2026 04:253,40219,066,559998,0001,996,0002,502,656
7Feb 7, 2026 04:253,41323,583,4231,001,0002,002,0002,277,376
8Feb 7, 2026 04:253,41616,365,2441,002,0002,004,0002,535,424
9Feb 7, 2026 04:253,59820,571,8581,055,0002,111,0002,494,464