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:44zielajzielajScore: 14,670Success
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:4414,50328,038,83912,763,00002,338,816
2Dec 12, 2024 02:4414,52628,259,06511,718,0001,065,0002,531,328
3Dec 12, 2024 02:4414,65229,857,28311,903,000991,0002,269,184
4Dec 12, 2024 02:4414,65928,918,60911,908,000992,0002,269,184
5Dec 12, 2024 02:4414,67029,871,18611,917,000993,0002,449,408
6Dec 12, 2024 02:4414,67533,529,45411,921,000993,0002,342,912
7Dec 12, 2024 02:4414,67728,002,10112,916,00002,347,008
8Dec 12, 2024 02:4414,70825,712,45610,952,0001,991,0002,342,912
9Dec 12, 2024 02:4415,19130,400,66613,368,00002,342,912