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 12, 2026 03:14zielajzielajScore: 3,539Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 12, 2026 03:143,46523,524,6292,033,0001,016,0002,392,064
2Feb 12, 2026 03:153,48418,803,6362,044,0001,022,0002,392,064
3Feb 12, 2026 03:153,53518,769,3192,074,0001,037,0002,387,968
4Feb 12, 2026 03:153,53920,523,0752,076,0001,038,0002,379,776
5Feb 12, 2026 03:143,57316,106,7912,096,0001,048,0002,383,872
6Feb 12, 2026 03:143,89420,654,0123,427,00002,383,872