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 00:30vahookvahookScore: 3,492Success
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 00:303,45816,927,3461,014,0002,029,0002,494,464
2Feb 5, 2026 00:303,46119,865,2551,015,0002,031,0002,281,472
3Feb 5, 2026 00:303,46516,394,9831,016,0002,033,0002,498,560
4Feb 5, 2026 00:303,46816,401,7921,017,0002,035,0002,494,464
5Feb 5, 2026 00:303,47224,299,5171,018,0002,037,0002,482,176
6Feb 5, 2026 00:303,48823,726,7761,023,0002,046,0002,490,368
7Feb 5, 2026 00:303,49216,850,7291,024,0002,049,0002,277,376
8Feb 5, 2026 00:303,49418,515,2241,025,0002,050,0002,498,560
9Feb 5, 2026 00:303,49520,831,7311,025,0002,051,0002,498,560
10Feb 5, 2026 00:303,51124,625,6031,030,0002,060,0002,494,464
11Feb 5, 2026 00:303,51521,345,0521,031,0002,062,0002,498,560
12Feb 5, 2026 00:303,52221,564,9001,033,0002,066,0002,502,656