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 listApr 23, 2025 08:43NoSIMD_C#NoSIMD_C#Score: 216,818Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2025 08:43216,424217,451,743189,451,0001,002,0002,535,424
2Apr 23, 2025 08:43216,818217,954,933190,800,00002,473,984
3Apr 23, 2025 08:43217,688210,062,625191,565,00002,486,272