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 2, 2026 17:01NoSIMD_C#NoSIMD_C#Score: 149,205Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 2, 2026 17:01148,538164,062,952130,713,00002,387,968
2Mar 2, 2026 17:01148,683167,577,468129,843,000998,0002,326,528
3Mar 2, 2026 17:01148,917159,689,832130,047,0001,000,0002,383,872
4Mar 2, 2026 17:01148,940159,747,099128,066,0003,001,0002,498,560
5Mar 2, 2026 17:01149,205160,128,493128,294,0003,006,0002,330,624
6Mar 2, 2026 17:01149,267161,486,240129,350,0002,005,0002,453,504
7Mar 2, 2026 17:01149,277155,646,426124,345,0007,019,0002,310,144
8Mar 2, 2026 17:01149,308158,465,428128,383,0003,008,0002,519,040
9Mar 2, 2026 17:01149,413162,626,263128,472,0003,011,0002,519,040