Primed For Action Challenge.Easy Solution [FREE]
by pbloraneFH - Sunday April 13, 2025 at 02:38 PM
#1
It's just a script but easy to solve

copy the script to web challenge and run with python


input_line = input()


def is_prime(n):
    if n < 2:
        return False
    if n == 2:
        return True
    if n % 2 == 0:
        return False
    for i in range(3, int(n ** 0.5) + 1, 2):
        if n % i == 0:
            return False
    return True


numbers = map(int, input_line.strip().split())


product = 1
for number in numbers:
    if is_prime(number):
        product *= number


print(product)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 25 2,499 3 hours ago
Last Post: cry_elite
  CBBH Write Ups hiddenhacker 25 6,552 3 hours ago
Last Post: cry_elite
  [FREE] CPTS 12 FLAGS pulsebreaker 84 2,884 3 hours ago
Last Post: justhelpmefly
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 33 3,075 3 hours ago
Last Post: justhelpmefly
  [FREE] HackTheBox Academy - CAPE Path Study Techtom 44 4,408 4 hours ago
Last Post: useryuserx

Forum Jump:


 Users browsing this forum: 1 Guest(s)