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 listApr 14, 2026 15:31limanjun99limanjun99Score: 17,608Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 15:3117,49133,792,58213,340,0002,052,0002,441,216
2Apr 14, 2026 15:3117,52432,765,36415,421,00002,449,408
3Apr 14, 2026 15:3117,54432,492,92513,381,0002,058,0002,338,816
4Apr 14, 2026 15:3117,56136,420,83713,394,0002,060,0002,449,408
5Apr 14, 2026 15:3117,60843,671,73113,429,0002,066,0002,441,216
6Apr 14, 2026 15:3118,18438,923,74314,002,0002,000,0002,449,408
7Apr 14, 2026 15:3118,21835,541,06212,024,0004,008,0002,453,504
8Apr 14, 2026 15:3118,27331,627,93813,065,0003,015,0002,428,928
9Apr 14, 2026 15:3118,27434,651,42113,066,0003,015,0002,428,928