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:41NoSIMD_C#NoSIMD_C#Score: 11,104,570Success
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:4110,674,1529,433,339,1329,353,304,00039,950,0002,437,120
2Nov 25, 2024 16:4111,104,5709,817,356,5899,735,087,00036,935,0002,420,736
3Nov 25, 2024 16:4111,119,6439,830,134,0589,738,357,00046,929,0002,416,640