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 listMar 18, 2026 08:08limanjun99limanjun99Score: 117,091Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 08:08116,919129,770,108101,891,000998,0002,289,664
2Mar 18, 2026 08:08116,942124,803,384100,911,0001,998,0002,277,376
3Mar 18, 2026 08:08117,005126,716,741100,965,0001,999,0002,289,664
4Mar 18, 2026 08:08117,005126,977,164101,965,000999,0002,269,184
5Mar 18, 2026 08:08117,091122,873,858101,040,0002,000,0002,289,664
6Mar 18, 2026 08:08117,139127,664,701101,081,0002,001,0002,289,664
7Mar 18, 2026 08:08117,266125,567,329102,193,0001,001,0002,273,280
8Mar 18, 2026 08:08117,308130,320,825101,227,0002,004,0002,289,664
9Mar 18, 2026 08:08117,643130,299,230103,526,00002,273,280