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 listMay 18, 2026 16:14M-RochatM-RochatScore: 24,806Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2026 16:1724,66732,098,77320,574,0001,133,0002,113,536
2May 18, 2026 16:1724,70533,166,90820,605,0001,136,0002,113,536
3May 18, 2026 16:1724,70732,608,73720,604,0001,139,0002,113,536
4May 18, 2026 16:1724,78834,510,82120,668,0001,146,0002,117,632
5May 18, 2026 16:1724,80633,300,38020,691,0001,139,0002,113,536
6May 18, 2026 16:1724,83933,535,16520,716,0001,143,0002,113,536
7May 18, 2026 16:1724,86836,754,86220,708,0001,176,0002,117,632
8May 18, 2026 16:1724,89533,406,93820,756,0001,152,0002,113,536
9May 18, 2026 16:1724,91534,654,49320,775,0001,151,0002,113,536