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 listNov 13, 2024 07:46E SequeiraE SequeiraScore: 2,161,006Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 13, 2024 07:462,160,2421,930,015,7321,899,015,0001,998,0002,289,664
2Nov 13, 2024 07:462,161,0061,923,704,4011,900,686,000999,0002,367,488
3Nov 13, 2024 07:462,166,2931,934,237,1301,904,339,0001,999,0002,371,584