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 15:56vahookvahookScore: 3,474Success
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 15:563,45820,989,9301,014,0002,029,0002,490,368
2Feb 5, 2026 15:563,46519,499,9131,016,0002,033,0002,498,560
3Feb 5, 2026 15:573,46718,813,0621,017,0002,034,0002,494,464
4Feb 5, 2026 15:573,47020,075,3701,018,0002,036,0002,281,472
5Feb 5, 2026 15:563,47220,464,7591,018,0002,037,0002,498,560
6Feb 5, 2026 15:573,47220,810,4281,018,0002,037,0002,535,424
7Feb 5, 2026 15:563,47420,979,8391,019,0002,038,0002,494,464
8Feb 5, 2026 15:563,47518,388,1641,019,0002,039,0002,498,560
9Feb 5, 2026 15:563,48818,318,1581,023,0002,046,0002,506,752
10Feb 5, 2026 15:563,50616,843,0701,028,0002,057,0002,277,376
11Feb 5, 2026 15:563,51320,974,9901,030,0002,061,0002,498,560
12Feb 5, 2026 15:563,51520,435,3301,031,0002,062,0002,498,560