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 14, 2026 21:31olliecrowolliecrowScore: 21,483Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 21:3121,28243,817,24218,728,00002,510,848
2Feb 14, 2026 21:3121,33554,819,86318,775,00002,355,200
3Feb 14, 2026 21:3121,35146,338,66517,746,0001,043,0002,285,568
4Feb 14, 2026 21:3121,47843,043,17017,907,000994,0002,355,200
5Feb 14, 2026 21:3121,48345,160,70817,910,000995,0002,523,136
6Feb 14, 2026 21:3121,48541,920,64017,912,000995,0002,531,328
7Feb 14, 2026 21:3121,49930,999,03818,919,00002,510,848
8Feb 14, 2026 21:3121,50144,608,61318,921,00002,514,944
9Feb 14, 2026 21:3121,50248,781,31218,922,00002,514,944