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:15NoSIMD_C#NoSIMD_C#Score: 10,980,170Success
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:1510,589,5159,354,113,0479,285,806,00032,967,0002,359,296
2Nov 16, 2024 06:1510,684,9419,442,650,9719,363,795,00038,953,0002,330,624
3Nov 16, 2024 06:1510,698,6349,452,796,6069,370,837,00043,961,0002,433,024
4Nov 16, 2024 06:1510,714,0419,467,465,5079,388,393,00039,963,0002,347,008
5Nov 16, 2024 06:1510,980,1709,699,196,6909,617,604,00044,946,0002,433,024
6Nov 16, 2024 06:1511,033,6159,750,523,9479,670,619,00038,962,0002,330,624
7Nov 16, 2024 06:1511,165,5259,862,777,1799,783,724,00041,938,0002,408,448
8Nov 16, 2024 06:1511,297,9889,988,221,4619,905,288,00036,941,0002,433,024
9Nov 16, 2024 06:1511,345,10610,027,723,6029,951,746,00031,947,0002,342,912