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 06:03NoSIMD_C#NoSIMD_C#Score: 11,722,369Success
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 06:0311,586,14010,229,171,67610,152,838,00042,965,0002,297,856
2Nov 16, 2024 06:0311,600,55510,247,177,53210,174,517,00033,971,0002,433,024
3Nov 16, 2024 06:0311,633,28610,272,940,19510,207,318,00029,974,0002,297,856
4Nov 16, 2024 06:0311,712,46410,339,407,98310,266,004,00040,964,0002,306,048
5Nov 16, 2024 06:0311,722,36910,355,099,11110,279,721,00035,964,0002,527,232
6Nov 16, 2024 06:0311,812,91510,430,814,75710,354,415,00040,950,0002,363,392
7Nov 16, 2024 06:0311,832,95210,451,760,96410,380,033,00032,965,0002,326,528
8Nov 16, 2024 06:0311,869,91710,480,942,22610,412,554,00032,973,0002,412,544
9Nov 16, 2024 06:0311,914,08410,521,449,03810,445,426,00038,968,0002,551,808