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 21, 2026 05:05Haha ExpertHaha ExpertScore: 126,510Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2026 05:07126,207119,610,976111,063,00002,117,632
2Sep 21, 2026 05:07126,250119,753,166110,095,0001,005,0002,117,632
3Sep 21, 2026 05:07126,302119,870,360111,146,00002,117,632
4Sep 21, 2026 05:07126,444119,848,985111,271,00002,117,632
5Sep 21, 2026 05:07126,510119,899,918111,329,00002,117,632
6Sep 21, 2026 05:07126,515123,934,273111,334,00002,117,632
7Sep 21, 2026 05:07126,546120,086,602111,361,00002,117,632
8Sep 21, 2026 05:07126,701120,179,754110,474,0001,023,0002,117,632
9Sep 21, 2026 05:07126,705130,765,299110,499,0001,002,0002,117,632