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 30, 2024 13:32matsuoka-601matsuoka-601Score: 17,200Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2024 13:3217,08126,651,27613,027,0002,004,0002,437,120
2Jul 30, 2024 13:3217,10345,473,35412,041,0003,010,0002,396,160
3Jul 30, 2024 13:3217,13139,438,69014,070,0001,005,0002,383,872
4Jul 30, 2024 13:3217,16039,314,63012,081,0003,020,0002,387,968
5Jul 30, 2024 13:3217,16631,453,25913,092,0002,014,0002,543,616
6Jul 30, 2024 13:3217,18839,124,65513,109,0002,016,0002,281,472
7Jul 30, 2024 13:3217,20032,543,49114,127,0001,009,0002,281,472
8Jul 30, 2024 13:3217,20546,566,96813,122,0002,018,0002,379,776
9Jul 30, 2024 13:3217,22438,640,41413,136,0002,021,0002,404,352
10Jul 30, 2024 13:3217,33393,828,42615,253,29002,256,896
11Jul 30, 2024 13:3217,33877,168,15915,257,78402,215,936
12Jul 30, 2024 13:3217,35278,088,22815,269,79302,351,104