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 11, 2026 04:37zielajzielajScore: 3,468Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 12, 2026 03:193,37219,212,0071,978,000989,0002,408,448
2Feb 11, 2026 04:373,43622,651,7522,016,0001,008,0002,400,256
3Feb 12, 2026 03:193,44821,362,8592,023,0001,011,0002,400,256
4Feb 12, 2026 03:193,45519,811,4012,027,0001,013,0002,404,352
5Feb 12, 2026 03:183,45716,512,8522,028,0001,014,0002,408,448
6Feb 12, 2026 03:193,46016,679,4602,030,0001,015,0002,396,160
7Feb 12, 2026 03:193,46817,753,1502,035,0001,017,0002,277,376
8Feb 12, 2026 03:193,48121,964,5922,042,0001,021,0002,412,544
9Feb 12, 2026 03:183,48219,091,5282,043,0001,021,0002,281,472
10Feb 12, 2026 03:183,48416,776,9482,044,0001,022,0002,535,424
11Feb 11, 2026 04:373,49218,616,8451,024,0002,049,0002,404,352
12Feb 11, 2026 04:373,53018,929,9521,035,0002,071,0002,400,256