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 8, 2026 20:15zielajzielajScore: 3,433Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2026 20:153,30818,725,7491,941,000970,0002,400,256
2Feb 8, 2026 20:153,31820,726,0511,947,000973,0002,396,160
3Feb 8, 2026 20:153,32018,019,8892,922,00002,506,752
4Feb 8, 2026 20:153,32218,206,2791,949,000974,0002,387,968
5Feb 8, 2026 20:153,34522,930,3791,963,000981,0002,400,256
6Feb 8, 2026 20:153,35518,458,8641,968,000984,0002,396,160
7Feb 8, 2026 20:153,43319,243,9872,014,0001,007,0002,396,160
8Feb 8, 2026 20:153,43822,262,8641,008,0002,017,0002,392,064
9Feb 8, 2026 20:153,45018,295,7082,024,0001,012,0002,387,968
10Feb 8, 2026 20:153,47222,533,7371,018,0002,037,0002,396,160
11Feb 8, 2026 20:153,48420,809,7301,022,0002,044,0002,387,968
12Feb 8, 2026 20:154,46620,188,4473,930,00002,392,064