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 12:04olliecrowolliecrowScore: 13,417Success
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 12:0513,24429,556,38210,596,0001,059,0002,342,912
2Apr 25, 2026 12:0513,28930,501,85911,695,00002,326,528
3Apr 25, 2026 12:0513,29430,614,53710,636,0001,063,0002,342,912
4Apr 25, 2026 12:0513,30329,354,59510,643,0001,064,0002,347,008
5Apr 25, 2026 12:0513,41728,256,41710,734,0001,073,0002,318,336
6Apr 25, 2026 12:0513,42827,925,9329,848,0001,969,0002,338,816
7Apr 25, 2026 12:0513,43133,597,0909,850,0001,970,0002,342,912
8Apr 25, 2026 12:0513,46129,164,2209,872,0001,974,0002,330,624
9Apr 25, 2026 12:0513,72137,196,14011,069,0001,006,0002,326,528