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 01:15zielajzielajScore: 3,468Success
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 01:153,37824,548,6291,982,000991,0002,351,104
2Feb 6, 2026 01:153,40718,122,8321,999,000999,0002,355,200
3Feb 6, 2026 01:153,44419,924,1562,021,0001,010,0002,510,848
4Feb 6, 2026 01:153,46818,152,2862,035,0001,017,0002,355,200
5Feb 6, 2026 01:153,56617,216,1941,046,0002,092,0002,355,200
6Feb 6, 2026 01:154,13617,945,9753,640,00002,351,104