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 16:05vahookvahookScore: 3,481Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 16:053,46419,206,1091,016,0002,032,0002,490,368
2Feb 5, 2026 16:053,46526,208,2391,016,0002,033,0002,502,656
3Feb 5, 2026 16:053,47226,163,8161,018,0002,037,0002,490,368
4Feb 5, 2026 16:053,47519,015,8021,019,0002,039,0002,535,424
5Feb 5, 2026 16:053,48120,631,1511,021,0002,042,0002,281,472
6Feb 5, 2026 16:053,50218,651,8461,027,0002,055,0002,277,376
7Feb 5, 2026 16:053,50819,238,4981,029,0002,058,0002,502,656
8Feb 5, 2026 16:053,52221,062,6851,033,0002,066,0002,502,656
9Feb 5, 2026 16:053,68015,504,9391,079,0002,159,0002,490,368