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 listSep 26, 2026 19:07Kevin HeaveyKevin HeaveyScore: 2,493Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 26, 2026 19:152,48011,355,2302,183,000020,480
2Sep 26, 2026 19:152,48111,365,3042,184,000020,480
3Sep 26, 2026 19:152,48511,389,5422,187,000020,480
4Sep 26, 2026 19:152,48811,346,9312,190,000020,480
5Sep 26, 2026 19:152,49310,853,8042,194,000020,480
6Sep 26, 2026 19:152,49611,383,3902,197,000020,480
7Sep 26, 2026 19:152,50210,868,9242,202,000020,480
8Sep 26, 2026 19:152,51310,721,6832,212,000020,480
9Sep 26, 2026 19:152,54510,789,8162,240,000020,480