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 listOct 4, 2023 12:15apuxbtapuxbtScore: 25,266Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:1525,01744,808,56719,013,0003,002,0002,293,760
2Oct 4, 2023 12:1525,03249,691,33020,026,0002,002,0002,490,368
3Oct 4, 2023 12:1525,04838,041,14720,039,0002,003,0002,285,568
4Oct 4, 2023 12:1525,11438,876,08820,091,0002,009,0002,314,240
5Oct 4, 2023 12:1525,15251,092,62819,116,0003,018,0002,310,144
6Oct 4, 2023 12:1525,23845,183,97119,181,0003,028,0002,293,760
7Oct 4, 2023 12:1525,26641,217,88920,213,0002,021,0002,314,240
8Oct 4, 2023 12:1525,29443,332,05318,212,0004,047,0002,293,760
9Oct 4, 2023 12:1525,33246,043,25220,266,0002,026,0002,314,240
10Oct 4, 2023 12:1525,94684,623,81722,832,54502,289,664
11Oct 4, 2023 12:1526,25682,106,43123,104,95802,281,472
12Oct 4, 2023 12:1526,29686,843,80623,140,18602,281,472