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 11:30Dan StolyarovDan StolyarovScore: 283,347Success
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 11:30281,565273,231,851243,781,0003,996,0002,404,352
2Nov 13, 2024 11:30281,630271,994,135243,837,0003,997,0002,289,664
3Nov 13, 2024 11:30283,189272,950,463245,203,0004,003,0002,461,696
4Nov 13, 2024 11:30283,209277,687,189246,222,0003,002,0002,453,504
5Nov 13, 2024 11:30283,347278,447,884245,340,0004,005,0002,461,696
6Nov 13, 2024 11:30284,070271,685,552245,983,0003,999,0002,289,664
7Nov 13, 2024 11:30284,182275,141,402246,079,0004,001,0002,289,664
8Nov 13, 2024 11:30284,275277,897,502246,160,0004,002,0002,465,792
9Nov 13, 2024 11:30284,948274,778,406247,745,0003,009,0002,469,888