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 5, 2026 16:10vahookvahookScore: 3,478Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 16:103,45820,935,0821,014,0002,029,0002,281,472
2Feb 5, 2026 16:103,46524,847,1661,016,0002,033,0002,494,464
3Feb 5, 2026 16:103,47221,256,9841,018,0002,037,0002,494,464
4Feb 5, 2026 16:103,47220,434,9041,018,0002,037,0002,498,560
5Feb 5, 2026 16:103,47818,400,1631,020,0002,041,0002,498,560
6Feb 5, 2026 16:103,47819,928,5021,020,0002,041,0002,535,424
7Feb 5, 2026 16:103,49121,576,7171,024,0002,048,0002,494,464
8Feb 5, 2026 16:103,51918,764,7161,032,0002,065,0002,498,560
9Feb 5, 2026 16:103,55316,629,8191,042,0002,085,0002,490,368