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:28vahookvahookScore: 3,484Success
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:283,45319,943,6021,013,0002,026,0002,535,424
2Feb 5, 2026 17:283,45820,243,9111,014,0002,029,0002,494,464
3Feb 5, 2026 17:283,46022,324,6801,015,0002,030,0002,498,560
4Feb 5, 2026 17:283,46524,708,0621,016,0002,033,0002,494,464
5Feb 5, 2026 17:283,47017,285,1841,018,0002,036,0002,281,472
6Feb 5, 2026 17:283,48419,746,8101,022,0002,044,0002,502,656
7Feb 5, 2026 17:283,48418,953,8561,022,0002,044,0002,498,560
8Feb 5, 2026 17:283,49520,922,2451,025,0002,051,0002,494,464
9Feb 5, 2026 17:283,49923,949,4811,026,0002,053,0002,498,560
10Feb 5, 2026 17:283,50921,407,2501,029,0002,059,0002,498,560
11Feb 5, 2026 17:283,52216,409,4191,033,0002,066,0002,494,464
12Feb 5, 2026 17:283,52520,063,5761,034,0002,068,0002,535,424