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:46NoSIMD_C#NoSIMD_C#Score: 14,988,967Success
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:4614,828,43013,083,313,70313,023,040,00025,978,0002,400,256
2Nov 16, 2024 05:4614,867,86913,126,731,91313,055,747,00027,978,0002,322,432
3Nov 16, 2024 05:4614,936,50213,184,509,02413,115,140,00028,982,0002,445,312
4Nov 16, 2024 05:4614,946,34413,192,502,94413,129,798,00022,985,0002,424,832
5Nov 16, 2024 05:4614,988,96713,225,899,75413,158,317,00031,974,0002,428,928
6Nov 16, 2024 05:4614,996,39813,236,596,22113,168,848,00027,982,0002,445,312
7Nov 16, 2024 05:4615,020,89713,247,353,28913,191,405,00026,984,0002,416,640
8Nov 16, 2024 05:4615,072,51313,294,516,45613,232,831,00030,980,0002,359,296
9Nov 16, 2024 05:4615,100,73213,325,551,64013,261,668,00026,976,0002,322,432