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 listApr 8, 2025 07:28NoSIMD_C#NoSIMD_C#Score: 196,998Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 8, 2025 07:28196,627200,574,264172,032,0001,000,0002,289,664
2Apr 8, 2025 07:28196,741204,167,679172,132,0001,000,0002,289,664
3Apr 8, 2025 07:28196,892201,084,715172,264,0001,001,0002,289,664
4Apr 8, 2025 07:28196,940199,320,635171,304,0002,003,0002,269,184
5Apr 8, 2025 07:28196,998197,794,351172,356,0001,002,0002,277,376
6Apr 8, 2025 07:28197,185207,316,886170,532,0002,991,0002,273,280
7Apr 8, 2025 07:28197,316203,944,662172,635,0001,003,0002,289,664
8Apr 8, 2025 07:28197,363211,316,490171,683,0001,996,0002,281,472
9Apr 8, 2025 07:28197,620200,656,079171,908,0001,998,0002,289,664