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:14zielajzielajScore: 5,291Success
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:145,13319,656,8163,388,0001,129,0002,510,848
2Dec 17, 2024 00:125,18920,050,0644,566,00002,355,200
3Dec 17, 2024 00:125,20023,270,1494,576,00002,506,752
4Dec 17, 2024 00:125,21522,352,8634,589,00002,531,328
5Dec 17, 2024 00:125,23619,063,1893,456,0001,152,0002,510,848
6Dec 17, 2024 00:125,24520,122,2384,616,00002,531,328
7Dec 17, 2024 00:125,27420,664,7634,641,00002,510,848
8Dec 17, 2024 00:115,29122,267,0153,492,0001,164,0002,531,328
9Dec 17, 2024 00:115,32024,449,3673,512,0001,170,0002,531,328
10Dec 17, 2024 00:115,32522,175,7764,686,00002,510,848
11Dec 17, 2024 00:145,34826,321,0164,706,00002,269,184
12Dec 17, 2024 00:125,37318,405,2693,546,0001,182,0002,510,848
13Dec 17, 2024 00:125,37524,199,0183,548,0001,182,0002,269,184
14Dec 17, 2024 00:145,39120,775,2503,558,0001,186,0002,355,200
15Dec 17, 2024 00:125,39821,591,9844,750,00002,523,136