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 17, 2024 00:21zielajzielajScore: 5,301Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2024 00:215,15617,779,1854,537,00002,519,040
2Dec 17, 2024 00:215,17823,907,0194,557,00002,531,328
3Dec 17, 2024 00:205,18221,573,6494,560,00002,506,752
4Dec 17, 2024 00:205,18821,699,4073,424,0001,141,0002,519,040
5Dec 17, 2024 00:205,19322,537,4914,570,00002,355,200
6Dec 17, 2024 00:205,20224,371,8203,434,0001,144,0002,531,328
7Dec 17, 2024 00:215,20222,229,9854,578,00002,531,328
8Dec 17, 2024 00:215,23118,681,1394,603,00002,355,200
9Dec 17, 2024 00:205,25317,284,1454,623,00002,531,328
10Dec 17, 2024 00:215,30124,946,3703,499,0001,166,0002,519,040
11Dec 17, 2024 00:215,31924,366,1423,511,0001,170,0002,510,848
12Dec 17, 2024 00:215,32018,286,6083,512,0001,170,0002,531,328
13Dec 17, 2024 00:205,32815,970,6604,689,00002,351,104
14Dec 17, 2024 00:205,34223,067,4684,701,00002,519,040
15Dec 17, 2024 00:215,36325,639,1504,719,00002,269,184
16Dec 17, 2024 00:205,39423,301,6284,747,00002,531,328
17Dec 17, 2024 00:215,40217,835,9423,566,0001,188,0002,355,200
18Dec 17, 2024 00:205,40618,379,1693,568,0001,189,0002,506,752