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 16:45NoSIMD_C#NoSIMD_C#Score: 10,969,585Success
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 16:4510,631,9679,396,367,8969,316,186,00039,945,0002,396,160
2Nov 25, 2024 16:4510,969,5859,695,878,0949,605,304,00047,931,0002,494,464
3Nov 25, 2024 16:4511,439,33610,113,039,29510,022,692,00043,924,0002,396,160