From 0079221776106e3ca91076938e80d37e38eacc29 Mon Sep 17 00:00:00 2001
From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de>
Date: Fri, 17 Oct 2025 07:01:14 +0200
Subject: [PATCH] 1. Vorlesung

---
 textbased-programms/prime-bigint-function.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/textbased-programms/prime-bigint-function.js b/textbased-programms/prime-bigint-function.js
index 5448cd2..5f42c55 100644
--- a/textbased-programms/prime-bigint-function.js
+++ b/textbased-programms/prime-bigint-function.js
@@ -8,9 +8,9 @@
 
 import {terminal} from "./dfhi.js";
 
-window.main = function(...argv) {
-	let n = BigInt(argv[0]);
-	let primeTest = isPrime(n);
+window.main = (...argv) => {
+	const n = BigInt(argv[0]);
+	const primeTest = isPrime(n);
 	if (primeTest) {
 		terminal.printl(`${n} ist eine Primzahl`);
 	} else {
@@ -18,7 +18,7 @@
 	}
 };
 
-function isPrime(n) {
+const isPrime = (n) => {
 	let p = BigInt(n);
 	if (p < 2n) {
 		return false;

--
Gitblit v1.10.0