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 listJan 21, 2026 03:15Josu San MartinJosu San MartinScore: 12,116Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2026 03:1111,99528,566,6048,445,0002,111,0002,322,432
2Jan 21, 2026 03:1112,00925,864,5939,512,0001,056,0002,326,528
3Jan 21, 2026 03:1112,01532,469,0518,459,0002,114,0002,514,944
4Jan 21, 2026 03:1112,03128,527,5779,529,0001,058,0002,310,144
5Jan 21, 2026 03:1512,03926,498,8699,535,0001,059,0002,510,848
6Jan 21, 2026 03:1012,11629,164,4659,596,0001,066,0002,412,544
7Jan 21, 2026 03:1112,11626,985,1559,596,0001,066,0002,322,432
8Jan 21, 2026 03:1012,11732,016,1439,597,0001,066,0002,322,432
9Jan 21, 2026 03:1512,13228,273,3628,541,0002,135,0002,273,280
10Jan 21, 2026 03:1012,19730,551,9778,587,0002,146,0002,535,424
11Jan 21, 2026 03:1512,20828,089,1489,669,0001,074,0002,318,336
12Jan 21, 2026 03:1112,22727,882,1319,684,0001,076,0002,506,752