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 13:32limanjun99limanjun99Score: 18,984Success
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 13:3218,37646,555,76014,150,0002,021,0002,494,464
2Apr 14, 2026 13:3218,43134,607,99114,192,0002,027,0002,445,312
3Apr 14, 2026 13:3218,43343,394,62214,194,0002,027,0002,445,312
4Apr 14, 2026 13:3218,93843,013,43615,624,0001,041,0002,359,296
5Apr 14, 2026 13:3218,98440,569,59715,662,0001,044,0002,519,040
6Apr 14, 2026 13:3219,17340,260,58113,895,0002,977,0002,359,296
7Apr 14, 2026 13:3219,19442,851,62014,904,0001,987,0002,441,216
8Apr 14, 2026 13:3219,19448,394,80215,898,000993,0002,486,272
9Apr 14, 2026 13:3219,19946,537,84315,902,000993,0002,441,216