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 8, 2024 21:13zielajzielajScore: 47,269Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2024 21:1347,18067,681,39241,518,00002,420,736
2Dec 8, 2024 21:1347,21958,822,31641,553,00002,433,024
3Dec 8, 2024 21:1347,26466,686,69041,592,00002,269,184
4Dec 8, 2024 21:1347,26564,710,92441,593,00002,531,328
5Dec 8, 2024 21:1347,26968,722,84841,597,00002,531,328
6Dec 8, 2024 21:1347,34868,526,42441,666,00002,428,928
7Dec 8, 2024 21:1347,39966,086,18940,694,0001,017,0002,428,928
8Dec 8, 2024 21:1347,60766,368,84540,897,000997,0002,428,928
9Dec 8, 2024 21:1347,61571,598,19841,901,00002,531,328