Skip to main content

One is not prime

It is 230am and I woke up to write. Twenty minutes have passed and my mind has not settled on what to write. I just did the calculation and I learnt that I have been on this earth for 16619 days. That is a good place to start my writing. With a random number. The first thing I noticed is that 1+6+6+1+9 = 23 (23 is my favorite number). 16619 is a prime number. It has started raining. I like writing when it rains. 16619 is the 1922nd prime number. Oh how I would have loved for it to be the 1923rd prime number. That would be true if 1 was prime. But why is 1 not prime? I read that it is excluded by definition so that unique prime factorisation remains unique. Of course they could have easily excluded 1 from the definition of UPF rather than exclude it from primes. To me that would have been the better choice.

My friend Chatty tells me that mathematicians do not call 1 a prime not because it could not be, but because excluding it keeps the entire structure of mathematics cleaner and simpler. If 1 were prime, every theorem involving primes would need messy exceptions, since 1 can be multiplied endlessly without changing anything. By defining primes as numbers with exactly two distinct divisors, 1 becomes a special "unit" instead of an atom, and prime factorization stays elegant and predictable. I could accept this but I still think that 1 is a prime number. More like I want 1 to be a prime number. 1 was sacrificed for convenience. 1 is a special prime. They say that one is the l-one-liest number. The more I learn, the more I think the world of Mathematics is fascinating. The world of numbers is fascinating and it is foundational.

Sometimes I feel like I should have been a mathematician because I like numbers so much. I just remembered the saying, do not count the days but make the days count. Who said that? Probably a mathematician. My friend Chatty tells me that it is often attributed to Muhammad Ali. I wonder what the boxer had to say about Maths? He might have said something like MATHS stands for Muhammad Ali Teaches Humility and Strength. Maths is a difficult subject for many. Maths can definitely knock you out if you let it. Maths can humble you. This made me remember a maths joke. Why was the equal sign so humble? It knew it was not less than or greater than anyone else! Comedians who are good at Maths like to say that we should stand up and be counted. When I started this blog post I did not know it would end in jokes. One might not be prime but it surely gave me a funny b-one.

Comments

Popular posts from this blog

Hobby project - Store and view exchange rates

The next step in my project was to test out being able store and display the rates in a database. I decided to use nodejs and supabase for this. Everything worked beautifully. Only hickup was the following error due to my package.json not being correct. SyntaxError: Cannot use import statement outside a module Added this to package.json   "type": "module" This works beautifully. Right now I am just testing fragments of what could be part of a bigger system to see what is possible and what works and how easy to code on a mobile. There is no fully functioning integrated end to end system just yet. This is also what I tested. A serverless append-only database using GitHub + Actions + Pages. That’s basically a lightweight backend system. This was the ChatGPT prompt I used. Guide me through each step. This is what I want. A manually run github actions that adds to docs/data.json with the current date and time. docs/index.html displays all the entries in data.json. Make s...

Running php and apache on termux

This was my experience getting php and apache to run on termux apt update && apt upgrade -y apt install php-apache I was following an old blog post that used php 7 and got these errors Can't locate API module structure `php7_module' in file /data/data/com.termux/files/usr/libexec/apache2/libphp.so: undefined symbol: php7_module Cannot load /data/data/com.termux/files/usr/libexec/apache2/libphp7.so Corrected in apache config file vim $PREFIX/etc/apache2/httpd.conf LoadModule php_module /data/data/com.termux/files/usr/libexec/apache2/libphp.so Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP. Comment out mpm_worker and use mpm_prefork #LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so This still does not work as apache (httpd) was failing silently. According to Chatty LoadModule php_module ...libphp.so often fails in Termux becau...

Stuck running sftp server on termux alpine for multi-user setup

The below is my journey trying to get multi-user sftp working using alpine on termux pkg update && pkg upgrade pkg install proot-distro openssh proot-distro install alpine proot-distro login alpine apk update apk upgrade apk add openssh shadow sudo apk add vim vim /etc/ssh/sshd_config Port 8022 PermitRootLogin no PasswordAuthentication yes Subsystem sftp internal-sftp Match Group sftpusers     ChrootDirectory /sftp/%u     ForceCommand internal-sftp     X11Forwarding no     AllowTcpForwarding no addgroup sftpusers adduser user1 adduser user1 sftpusers mkdir -p /sftp/user1/upload chown root:root /sftp/user1 chmod 755 /sftp/user1 chown user1:sftpusers /sftp/user1/upload How I run my server each time pkill sshd rm -f /etc/ssh/ssh_host_* ssh-keygen -A /usr/sbin/sshd -D -d -d -d From another termux session sftp -P 8022 user1@127.0.0.1 Connection reset by 127.0.0.1 port 8022 Connection closed Some troubleshooting steps mkdir -p /run/sshd chmod 75...