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 listMar 20, 2026 16:53olliecrowolliecrowScore: 18,886Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 16:5318,82339,947,19313,459,0003,105,0002,469,888
2Mar 20, 2026 16:5418,85637,592,17614,519,0002,074,0002,531,328
3Mar 20, 2026 16:5418,86635,372,37714,527,0002,075,0002,342,912
4Mar 20, 2026 16:5318,88637,271,11015,582,0001,038,0002,342,912
5Mar 20, 2026 16:5418,99345,809,17515,670,0001,044,0002,347,008
6Mar 20, 2026 16:5319,11035,373,97415,766,0001,051,0002,342,912