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 16, 2024 05:42NoSIMD_C#NoSIMD_C#Score: 15,368,827Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 05:4215,063,83813,292,038,96113,230,191,00025,986,0002,359,296
2Nov 16, 2024 05:4215,177,67313,396,167,51613,335,366,00020,986,0002,433,024
3Nov 16, 2024 05:4215,180,14813,397,438,76713,332,545,00025,985,0002,445,312
4Nov 16, 2024 05:4215,310,96913,510,739,83313,450,671,00022,982,0002,428,928
5Nov 16, 2024 05:4215,368,82713,564,897,65713,495,589,00028,979,0002,428,928
6Nov 16, 2024 05:4215,370,69213,557,180,70313,497,228,00028,981,0002,322,432
7Nov 16, 2024 05:4215,375,93613,570,162,59613,505,840,00024,984,0002,306,048
8Nov 16, 2024 05:4215,462,75913,647,181,16613,579,251,00027,977,0002,322,432
9Nov 16, 2024 05:4215,472,41813,655,235,64613,592,746,00022,982,0002,543,616