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 6, 2026 02:16vahookvahookScore: 3,464Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 02:163,45022,065,4751,012,0002,024,0002,498,560
2Feb 6, 2026 02:163,45318,350,7761,013,0002,026,0002,494,464
3Feb 6, 2026 02:163,46021,435,7381,015,0002,030,0002,494,464
4Feb 6, 2026 02:163,46417,526,5551,016,0002,032,0002,498,560
5Feb 6, 2026 02:163,46520,331,3371,016,0002,033,0002,498,560
6Feb 6, 2026 02:163,49421,301,0651,025,0002,050,0002,506,752