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 1, 2025 06:24wainCGPwainCGPScore: 30,086Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2025 06:2429,77847,515,87824,190,0002,015,0002,289,664
2Mar 1, 2025 06:2429,87848,951,81224,271,0002,022,0002,289,664
3Mar 1, 2025 06:2430,04153,399,85925,420,0001,016,0002,277,376
4Mar 1, 2025 06:2430,06555,640,53025,440,0001,017,0002,265,088
5Mar 1, 2025 06:2430,08650,456,05425,458,0001,018,0002,277,376
6Mar 1, 2025 06:2430,12454,910,42426,509,00002,289,664
7Mar 1, 2025 06:2430,13148,368,90825,496,0001,019,0002,269,184
8Mar 1, 2025 06:2430,17051,141,08826,550,00002,289,664
9Mar 1, 2025 06:2430,21548,672,68025,567,0001,022,0002,371,584