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 15, 2026 01:41zielajzielajScore: 3,339Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2026 01:413,31119,713,7731,943,000971,0002,514,944
2Feb 15, 2026 01:453,31519,021,1341,945,000972,0002,416,640
3Feb 15, 2026 01:403,32821,568,7021,953,000976,0002,424,832
4Feb 15, 2026 01:403,33422,907,6751,956,000978,0002,510,848
5Feb 15, 2026 01:453,33923,535,0801,959,000979,0002,420,736
6Feb 15, 2026 01:453,34215,710,7142,941,00002,527,232
7Feb 15, 2026 01:413,44018,353,7052,018,0001,009,0002,416,640
8Feb 15, 2026 01:413,44317,081,9312,020,0001,010,0002,424,832
9Feb 15, 2026 01:404,18021,809,5023,678,00002,420,736