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 listApr 22, 2026 14:49olliecrowolliecrowScore: 14,338Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 14:5014,13735,320,19711,405,0001,036,0002,314,240
2Apr 22, 2026 14:5014,25231,140,23411,497,0001,045,0002,392,064
3Apr 22, 2026 14:5014,29232,082,15511,529,0001,048,0002,301,952
4Apr 22, 2026 14:5014,33633,466,4559,462,0003,154,0002,342,912
5Apr 22, 2026 14:5014,33829,410,62411,567,0001,051,0002,535,424
6Apr 22, 2026 14:5014,35530,815,32211,581,0001,052,0002,560,000
7Apr 22, 2026 14:5014,41929,685,18912,689,00002,330,624
8Apr 22, 2026 14:5014,42330,829,7059,764,0002,929,0002,310,144
9Apr 22, 2026 14:5014,47027,726,09211,673,0001,061,0002,310,144