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 13, 2025 10:35wainCGPwainCGPScore: 18,342Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2025 10:3518,26639,216,20114,065,0002,009,0002,289,664
2Mar 13, 2025 10:3518,27640,440,95514,073,0002,010,0002,265,088
3Mar 13, 2025 10:3518,32542,342,54914,111,0002,015,0002,277,376
4Mar 13, 2025 10:3518,34146,049,95814,123,0002,017,0002,289,664
5Mar 13, 2025 10:3518,34238,033,47715,133,0001,008,0002,289,664
6Mar 13, 2025 10:3518,35238,729,30014,132,0002,018,0002,269,184
7Mar 13, 2025 10:3518,36534,844,88214,141,0002,020,0002,289,664
8Mar 13, 2025 10:3518,48044,141,52114,230,0002,032,0002,269,184
9Mar 13, 2025 10:3518,50533,879,24715,267,0001,017,0002,289,664