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 5, 2026 02:08vahookvahookScore: 3,485Success
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 23:003,46422,622,4581,016,0002,032,0002,498,560
2Feb 4, 2026 23:003,47017,712,5541,018,0002,036,0002,494,464
3Feb 4, 2026 23:003,47222,377,6671,018,0002,037,0002,498,560
4Feb 5, 2026 01:163,47819,675,3501,020,0002,041,0002,502,656
5Feb 5, 2026 02:083,48520,762,8901,022,0002,045,0002,498,560
6Feb 5, 2026 01:163,49218,445,5311,024,0002,049,0002,277,376
7Feb 5, 2026 01:163,49419,713,0731,025,0002,050,0002,277,376
8Feb 5, 2026 02:083,52522,788,1361,034,0002,068,0002,494,464
9Feb 5, 2026 02:083,58117,381,5151,050,0002,101,0002,498,560