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 listMar 7, 2025 16:47wainCGPwainCGPScore: 23,538Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 7, 2025 16:4723,47543,716,65920,658,00002,277,376
2Mar 7, 2025 16:4723,49851,345,74519,645,0001,033,0002,269,184
3Mar 7, 2025 16:4723,52654,119,30719,668,0001,035,0002,289,664
4Mar 7, 2025 16:4723,53552,583,97419,676,0001,035,0002,273,280
5Mar 7, 2025 16:4723,53853,895,10219,678,0001,035,0002,289,664
6Mar 7, 2025 16:4723,57850,898,45119,712,0001,037,0002,281,472
7Mar 7, 2025 16:4723,58245,539,29919,715,0001,037,0002,273,280
8Mar 7, 2025 16:4723,59247,078,82720,761,00002,269,184
9Mar 7, 2025 16:4723,60552,642,90419,734,0001,038,0002,289,664