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 16, 2026 00:44zielajzielajScore: 3,409Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 16, 2026 00:423,29318,076,4611,932,000966,0002,441,216
2Feb 16, 2026 00:423,31519,587,8701,945,000972,0002,441,216
3Feb 16, 2026 00:423,32420,750,6881,950,000975,0002,437,120
4Feb 16, 2026 00:423,32418,193,9881,950,000975,0002,441,216
5Feb 16, 2026 00:423,33222,189,0681,955,000977,0002,453,504
6Feb 16, 2026 00:433,34116,347,5371,960,000980,0002,433,024
7Feb 16, 2026 00:443,39323,796,3731,991,000995,0002,433,024
8Feb 16, 2026 00:423,40919,221,9452,000,0001,000,0002,433,024
9Feb 16, 2026 00:433,41017,552,4472,001,0001,000,0002,281,472
10Feb 16, 2026 00:423,42720,950,1251,005,0002,011,0002,281,472
11Feb 16, 2026 00:443,44122,424,7662,019,0001,009,0002,281,472
12Feb 16, 2026 00:423,47019,510,5942,036,0001,018,0002,433,024
13Feb 16, 2026 00:423,68621,084,6103,244,00002,277,376
14Feb 16, 2026 00:433,74721,006,8373,297,00002,437,120
15Feb 16, 2026 00:443,98919,728,4662,340,0001,170,0002,437,120