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 14, 2024 17:43MatthiasMatthiasScore: 7,343,248Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 17:437,320,6436,473,318,5566,440,167,0001,999,0002,285,568
2Dec 14, 2024 17:437,325,6016,475,124,8696,444,530,0001,999,0002,277,376
3Dec 14, 2024 17:437,331,8866,479,529,3346,451,061,000999,0002,285,568
4Dec 14, 2024 17:437,332,0936,481,055,0316,451,243,000999,0002,285,568
5Dec 14, 2024 17:437,343,2486,489,257,2616,461,059,000999,0002,277,376
6Dec 14, 2024 17:437,343,6096,488,452,6976,460,377,0001,999,0002,277,376
7Dec 14, 2024 17:437,379,2096,523,592,4926,491,706,0001,998,0002,277,376
8Dec 14, 2024 17:437,380,8996,524,982,4556,493,192,0001,999,0002,277,376
9Dec 14, 2024 17:437,384,8256,527,934,5316,497,647,000999,0002,273,280