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 listDec 13, 2024 07:58NoSIMD_C#NoSIMD_C#Score: 200,990Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 06:43200,480201,779,919175,420,0001,002,0002,285,568
2Dec 11, 2024 06:43200,645197,032,533174,562,0002,006,0002,285,568
3Dec 11, 2024 06:43200,715204,563,100174,634,0001,995,0002,260,992
4Dec 13, 2024 07:58200,730204,492,570175,639,0001,003,0002,277,376
5Dec 11, 2024 06:43200,918199,136,410175,810,000998,0002,285,568
6Dec 11, 2024 06:43200,967207,602,995175,852,000999,0002,285,568
7Dec 13, 2024 07:58200,990202,784,608174,873,0001,998,0002,285,568
8Dec 11, 2024 06:43201,103205,941,344174,972,0001,999,0002,285,568
9Dec 11, 2024 06:43201,143203,172,063175,006,0002,000,0002,269,184
10Dec 11, 2024 06:43201,245199,537,398176,096,0001,000,0002,265,088
11Dec 11, 2024 06:43201,414198,784,316176,243,0001,001,0002,371,584
12Dec 13, 2024 07:58201,839207,940,664176,615,0001,003,0002,285,568