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 listJul 25, 2023 20:41gchebanovgchebanovScore: 32,491Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 20:4132,25751,002,72527,373,0001,013,0002,375,680
2Jul 25, 2023 20:4132,31153,314,77726,403,0002,031,0002,371,584
3Jul 25, 2023 20:4132,34851,744,45527,450,0001,016,0002,289,664
4Jul 25, 2023 20:4132,36750,461,18227,466,0001,017,0002,367,488
5Jul 25, 2023 20:4132,37354,704,84927,471,0001,017,0002,375,680
6Jul 25, 2023 20:4132,46950,280,83027,553,0001,020,0002,289,664
7Jul 25, 2023 20:4132,49150,743,79027,571,0001,021,0002,375,680
8Jul 25, 2023 20:4132,56698,099,91828,658,47502,220,032
9Jul 25, 2023 20:4132,61299,665,01828,698,44202,220,032
10Jul 25, 2023 20:4132,61594,022,11028,701,13802,220,032
11Jul 25, 2023 20:4132,63862,107,18327,696,0001,025,0002,289,664
12Jul 25, 2023 20:4132,67354,751,19626,770,0001,982,0002,371,584