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 12, 2024 02:03zielajzielajScore: 14,694Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 02:0314,66735,382,64110,922,0001,985,0002,269,184
2Dec 12, 2024 02:0314,67328,117,26111,919,000993,0002,269,184
3Dec 12, 2024 02:0314,67634,179,32111,922,000993,0002,342,912
4Dec 12, 2024 02:0314,67833,877,75411,924,000993,0002,338,816
5Dec 12, 2024 02:0314,69428,667,76010,942,0001,989,0002,342,912
6Dec 12, 2024 02:0314,70127,900,12610,947,0001,990,0002,531,328
7Dec 12, 2024 02:0314,70728,123,09111,947,000995,0002,449,408
8Dec 12, 2024 02:0315,16928,738,15513,349,00002,449,408
9Dec 12, 2024 02:0315,24533,379,19212,384,0001,032,0002,531,328