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 27, 2026 15:08Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 15:09050,523,33633,297,0001,009,0002,433,024expected "51358196767744 ", got "51358233075725 "
2Apr 27, 2026 15:0938,69252,672,24632,047,0002,002,0002,428,928
3Apr 27, 2026 15:0938,77650,271,83833,120,0001,003,0002,330,624
4Apr 27, 2026 15:0938,98151,138,94633,296,0001,008,0002,334,720
5Apr 27, 2026 15:0939,05447,348,71633,358,0001,010,0002,437,120
6Apr 27, 2026 15:0939,06846,604,63933,369,0001,011,0002,428,928
7Apr 27, 2026 15:0939,10449,886,06233,400,0001,012,0002,428,928
8Apr 27, 2026 15:0939,15350,008,89133,442,0001,013,0002,428,928
9Apr 27, 2026 15:0939,17549,659,06333,461,0001,013,0002,428,928