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 8, 2026 22:21zielajzielajScore: 3,467Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2026 22:073,33920,213,9511,959,000979,0002,396,160
2Feb 8, 2026 22:073,44026,553,0512,018,0001,009,0002,531,328
3Feb 8, 2026 22:163,44019,338,8402,018,0001,009,0002,531,328
4Feb 8, 2026 22:163,45719,003,5352,028,0001,014,0002,387,968
5Feb 8, 2026 22:073,45816,266,6611,014,0002,029,0002,531,328
6Feb 8, 2026 22:213,46417,979,7752,032,0001,016,0002,392,064
7Feb 8, 2026 22:073,46720,576,5132,034,0001,017,0002,383,872
8Feb 8, 2026 22:073,47518,812,8782,039,0001,019,0002,392,064
9Feb 8, 2026 22:073,47523,989,8252,039,0001,019,0002,387,968
10Feb 8, 2026 22:213,49919,058,1892,053,0001,026,0002,392,064
11Feb 8, 2026 22:163,51117,210,4511,030,0002,060,0002,392,064
12Feb 8, 2026 22:213,70318,206,6511,086,0002,173,0002,387,968