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 01:36vahookvahookScore: 3,770Success
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 01:363,72716,860,0452,187,0001,093,0002,494,464
2Feb 4, 2026 01:363,73316,482,8902,190,0001,095,0002,498,560
3Feb 4, 2026 01:363,76020,644,1862,206,0001,103,0002,494,464
4Feb 4, 2026 01:363,76023,887,6352,206,0001,103,0002,498,560
5Feb 4, 2026 01:363,77020,602,1662,212,0001,106,0002,277,376
6Feb 4, 2026 01:363,77519,425,1212,215,0001,107,0002,494,464
7Feb 4, 2026 01:363,77717,987,8912,216,0001,108,0002,498,560
8Feb 4, 2026 01:363,78821,282,4562,222,0001,111,0002,498,560
9Feb 4, 2026 01:363,79220,444,4442,225,0001,112,0002,494,464