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 23, 2023 06:30matsuoka-601matsuoka-601Score: 33,661Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2023 06:3033,49955,236,32126,430,0003,049,0002,392,064
2Jul 23, 2023 06:3033,50153,769,30626,432,0003,049,0002,289,664
3Jul 23, 2023 06:3033,57756,422,68626,492,0003,056,0002,289,664
4Jul 23, 2023 06:3033,59552,026,42626,506,0003,058,0002,289,664
5Jul 23, 2023 06:3033,61158,868,21726,519,0003,059,0002,453,504
6Jul 23, 2023 06:3033,65554,212,38226,553,0003,063,0002,424,832
7Jul 23, 2023 06:3033,66151,356,76926,558,0003,064,0002,326,528
8Jul 23, 2023 06:3033,68552,827,54626,577,0003,066,0002,469,888
9Jul 23, 2023 06:3033,688105,734,58129,645,72902,183,168
10Jul 23, 2023 06:3033,69257,617,18426,582,0003,067,0002,469,888
11Jul 23, 2023 06:3033,73591,716,16829,686,77402,195,456
12Jul 23, 2023 06:3033,79888,648,70129,741,96402,179,072