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 7, 2026 05:02vahookvahookScore: 3,393Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 05:023,33917,736,980979,0001,959,0002,277,376
2Feb 7, 2026 05:033,38323,533,717992,0001,985,0002,494,464
3Feb 7, 2026 05:023,38522,845,214993,0001,986,0002,494,464
4Feb 7, 2026 05:023,38520,028,876993,0001,986,0002,277,376
5Feb 7, 2026 05:033,39321,552,101995,0001,991,0002,498,560
6Feb 7, 2026 05:023,40326,577,106998,0001,997,0002,490,368
7Feb 7, 2026 05:033,43415,798,2131,007,0002,015,0002,490,368
8Feb 7, 2026 05:023,48222,398,9461,021,0002,043,0002,494,464
9Feb 7, 2026 05:023,49815,839,9981,026,0002,052,0002,494,464