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 20, 2024 05:35NoSIMD_C#NoSIMD_C#Score: 11,242,345Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 20, 2024 05:3511,142,1109,840,364,4469,760,112,00044,945,0002,318,336
2Nov 20, 2024 05:3511,242,3459,933,402,1409,854,319,00038,945,0002,416,640
3Nov 20, 2024 05:3511,507,14010,168,036,94010,083,354,00042,929,0002,285,568