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 listJan 18, 2025 07:09Ian MckibbenIan MckibbenScore: 108,943Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2025 07:09108,219122,881,71393,229,0002,004,0002,277,376
2Jan 18, 2025 07:09108,252118,201,83394,260,0001,002,0002,289,664
3Jan 18, 2025 07:09108,490124,441,52194,467,0001,004,0002,269,184
4Jan 18, 2025 07:09108,936126,413,13493,867,0001,997,0002,289,664
5Jan 18, 2025 07:09108,943126,289,89493,873,0001,997,0002,289,664
6Jan 18, 2025 07:09108,992123,347,78493,915,0001,998,0002,289,664
7Jan 18, 2025 07:09109,014119,179,19793,934,0001,998,0002,289,664
8Jan 18, 2025 07:09109,220123,894,61594,112,0002,002,0002,269,184
9Jan 18, 2025 07:09109,234118,834,59194,124,0002,002,0002,289,664