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 25, 2026 20:18olliecrowolliecrowScore: 145,513Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 20:19145,223145,852,993125,801,0001,996,0002,326,528stderr
2Apr 25, 2026 20:19145,275146,938,375125,845,0001,997,0002,314,240stderr
3Apr 25, 2026 20:19145,348143,878,395125,909,0001,998,0002,330,624stderr
4Apr 25, 2026 20:19145,479144,004,957126,022,0002,000,0002,379,776stderr
5Apr 25, 2026 20:19145,513148,554,299126,052,0002,000,0002,392,064stderr
6Apr 25, 2026 20:19145,563144,054,725126,095,0002,001,0002,383,872stderr
7Apr 25, 2026 20:19145,792141,571,982127,295,0001,002,0002,383,872stderr
8Apr 25, 2026 20:19145,815144,945,590127,316,0001,002,0002,383,872stderr
9Apr 25, 2026 20:19146,461148,104,041126,888,0001,998,0002,326,528stderr