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 MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:37M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:3708,650,4761,486,00002,117,632expected "6442459076 ", got "2147490633 "
2May 17, 2026 08:3709,702,8121,459,00002,117,632expected "6442459076 ", got "2147490633 "
3May 17, 2026 08:3709,630,2691,433,00002,117,632expected "6442459076 ", got "2147490633 "
4Jan 21, 2026 03:1111,99528,566,6048,445,0002,111,0002,322,432
5Jan 21, 2026 03:1112,00925,864,5939,512,0001,056,0002,326,528
6Jan 21, 2026 03:1112,01532,469,0518,459,0002,114,0002,514,944
7Jan 21, 2026 03:1112,03128,527,5779,529,0001,058,0002,310,144
8Jan 21, 2026 03:1512,03926,498,8699,535,0001,059,0002,510,848
9Jan 21, 2026 03:1012,11629,164,4659,596,0001,066,0002,412,544
10Jan 21, 2026 03:1112,11626,985,1559,596,0001,066,0002,322,432
11Jan 21, 2026 03:1012,11732,016,1439,597,0001,066,0002,322,432
12Jan 21, 2026 03:1512,13228,273,3628,541,0002,135,0002,273,280
13Jan 21, 2026 03:1012,19730,551,9778,587,0002,146,0002,535,424
14Jan 21, 2026 03:1512,20828,089,1489,669,0001,074,0002,318,336
15Jan 21, 2026 03:1112,22727,882,1319,684,0001,076,0002,506,752