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 listJan 21, 2025 07:39NoSIMD_C#NoSIMD_C#Score: 201,018Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2025 07:39200,590199,925,266174,514,0002,005,0002,535,424
2Jan 21, 2025 07:39200,930204,642,651175,820,000998,0002,289,664
3Jan 21, 2025 07:39200,941205,793,251176,828,00002,293,760
4Jan 21, 2025 07:39200,969208,385,322175,854,000999,0002,289,664
5Jan 21, 2025 07:39201,018203,955,755172,899,0003,997,0002,523,136
6Jan 21, 2025 07:39201,024206,615,920173,903,0002,998,0002,289,664
7Jan 21, 2025 07:39201,122202,880,688173,988,0002,999,0002,535,424
8Jan 21, 2025 07:39201,248210,075,544175,097,0002,001,0002,293,760
9Jan 21, 2025 07:39201,797203,906,096174,572,0003,009,0002,306,048