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 listDec 14, 2024 16:10zielajzielajScore: 6,843Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 16:126,75218,830,6634,952,000990,0002,510,848
2Dec 14, 2024 16:126,76823,156,4084,964,000992,0002,506,752
3Dec 14, 2024 16:126,77319,551,4405,960,00002,506,752
4Dec 14, 2024 16:126,77722,521,5854,970,000994,0002,531,328
5Dec 14, 2024 16:106,78419,195,0024,975,000995,0002,510,848
6Dec 14, 2024 16:126,78419,409,6864,975,000995,0002,269,184
7Dec 14, 2024 16:106,79919,375,6654,986,000997,0002,510,848
8Dec 14, 2024 16:106,82226,449,6865,003,0001,000,0002,506,752
9Dec 14, 2024 16:126,84223,109,4965,018,0001,003,0002,531,328
10Dec 14, 2024 16:106,84323,012,1315,019,0001,003,0002,531,328
11Dec 14, 2024 16:106,85024,229,1935,024,0001,004,0002,531,328
12Dec 14, 2024 16:106,86019,417,4895,031,0001,006,0002,531,328
13Dec 14, 2024 16:106,86322,946,8405,033,0001,006,0002,531,328
14Dec 14, 2024 16:126,91122,280,2495,069,0001,013,0002,351,104
15Dec 14, 2024 16:126,91722,204,1264,058,0002,029,0002,531,328
16Dec 14, 2024 16:106,95125,495,8114,078,0002,039,0002,510,848
17Dec 14, 2024 16:106,95126,787,5024,078,0002,039,0002,531,328
18Dec 14, 2024 16:126,99924,701,0084,106,0002,053,0002,269,184