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 listNov 25, 2024 17:08NoSIMD_C#NoSIMD_C#Score: 5,365,870Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 25, 2024 17:085,341,0334,726,327,7414,698,110,0001,999,0002,293,760
2Nov 25, 2024 17:085,359,3104,745,477,9584,715,194,000999,0002,289,664
3Nov 25, 2024 17:085,364,5924,746,555,4614,719,842,000999,0002,293,760
4Nov 25, 2024 17:085,365,4884,747,172,8604,718,630,0002,999,0002,293,760
5Nov 25, 2024 17:085,365,8704,756,364,1124,718,968,0002,998,0002,539,520
6Nov 25, 2024 17:085,366,3664,754,098,2454,720,403,0001,999,0002,539,520
7Nov 25, 2024 17:085,392,7654,774,107,5664,744,634,000999,0002,539,520
8Nov 25, 2024 17:085,400,4764,783,004,5024,751,420,000999,0002,297,856
9Nov 25, 2024 17:085,402,1364,780,559,9864,751,881,0001,999,0002,301,952