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 17:29vahookvahookScore: 3,488Success
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 17:223,46021,366,3641,015,0002,030,0002,281,472
2Feb 5, 2026 17:293,46120,586,5441,015,0002,031,0002,277,376
3Feb 5, 2026 17:183,47222,358,3792,037,0001,018,0002,490,368
4Feb 5, 2026 17:183,47419,957,8741,019,0002,038,0002,498,560
5Feb 5, 2026 17:183,47717,785,5631,020,0002,040,0002,490,368
6Feb 5, 2026 17:223,48421,356,6561,022,0002,044,0002,281,472
7Feb 5, 2026 17:183,48522,631,7831,022,0002,045,0002,494,464
8Feb 5, 2026 17:293,48820,034,5551,023,0002,046,0002,490,368
9Feb 5, 2026 17:293,48917,395,9201,023,0002,047,0002,498,560
10Feb 5, 2026 17:293,48920,113,0611,023,0002,047,0002,281,472
11Feb 5, 2026 17:293,49518,912,0481,025,0002,051,0002,494,464
12Feb 5, 2026 17:183,50223,738,1611,027,0002,055,0002,494,464
13Feb 5, 2026 17:293,50617,813,0981,028,0002,057,0002,494,464
14Feb 5, 2026 17:183,50817,748,9321,029,0002,058,0002,498,560
15Feb 5, 2026 17:223,51519,310,3261,031,0002,062,0002,277,376