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:39matsuoka-601matsuoka-601Score: 40,456Success
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:3936,34092,180,58531,978,80902,183,168
2Jul 23, 2023 06:3936,37888,754,28532,012,34502,179,072
3Jul 23, 2023 06:3936,468121,329,93832,091,84202,187,264
4Jul 23, 2023 06:3940,23160,994,49232,369,0003,034,0002,469,888
5Jul 23, 2023 06:3940,38160,939,05033,505,0002,030,0002,449,408
6Jul 23, 2023 06:3940,42557,012,65732,525,0003,049,0002,465,792
7Jul 23, 2023 06:3940,45657,720,75233,567,0002,034,0002,469,888
8Jul 23, 2023 06:3940,45757,770,18234,585,0001,017,0002,469,888
9Jul 23, 2023 06:3940,46462,239,39932,556,0003,052,0002,289,664
10Jul 23, 2023 06:3940,55061,652,34633,645,0002,039,0002,289,664
11Jul 23, 2023 06:3940,59462,422,81632,661,0003,062,0002,289,664
12Jul 23, 2023 06:3940,63563,564,49932,694,0003,065,0002,473,984