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 26, 2024 06:19NoSIMD_C#NoSIMD_C#Score: 202,314Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 26, 2024 06:19202,284206,457,117175,010,0003,000,0002,539,520
2Nov 26, 2024 06:19202,314202,942,828177,036,0001,000,0002,301,952
3Nov 26, 2024 06:19202,422207,376,983176,130,0002,001,0002,293,760