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 03:49zielajzielajScore: 3,406Success
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 03:493,35521,156,7841,968,000984,0002,342,912
2Feb 6, 2026 03:493,37515,724,2141,980,000990,0002,347,008
3Feb 6, 2026 03:493,38023,824,0921,983,000991,0002,531,328
4Feb 6, 2026 03:493,40022,160,7851,995,000997,0002,347,008
5Feb 6, 2026 03:493,40624,126,3721,998,000999,0002,338,816
6Feb 6, 2026 03:493,46520,120,4102,033,0001,016,0002,342,912
7Feb 6, 2026 03:493,60819,332,4602,117,0001,058,0002,342,912
8Feb 6, 2026 03:494,08417,399,3953,594,00002,334,720
9Feb 6, 2026 03:494,17223,471,1103,671,00002,347,008