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 6, 2026 03:57vahookvahookScore: 3,472Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 03:573,39923,077,027997,0001,994,0002,490,368
2Feb 6, 2026 03:573,43020,624,5491,006,0002,012,0002,277,376
3Feb 6, 2026 03:583,45018,201,6391,012,0002,024,0002,502,656
4Feb 6, 2026 03:573,45819,208,5821,014,0002,029,0002,502,656
5Feb 6, 2026 03:573,46021,818,5751,015,0002,030,0002,502,656
6Feb 6, 2026 03:573,46419,415,1861,016,0002,032,0002,502,656
7Feb 6, 2026 03:573,46716,473,3971,017,0002,034,0002,494,464
8Feb 6, 2026 03:573,47220,448,4521,018,0002,037,0002,535,424
9Feb 6, 2026 03:583,47223,719,4431,018,0002,037,0002,490,368
10Feb 6, 2026 03:573,47415,932,3921,019,0002,038,0002,494,464
11Feb 6, 2026 03:573,47719,092,7821,020,0002,040,0002,494,464
12Feb 6, 2026 03:573,48118,875,3801,021,0002,042,0002,494,464
13Feb 6, 2026 03:573,48920,514,3581,023,0002,047,0002,494,464
14Feb 6, 2026 03:583,52228,025,5111,033,0002,066,0002,490,368
15Feb 6, 2026 03:573,53318,233,2241,036,0002,073,0002,494,464