Monday, 20 July 2015

Prime?

Today I found something called Wolstenholme’s theorem, which says: 
For a prime p > 3, the numerator of H(p-1) is divisible by p^2,
where H(n) =  1/1 + 1/2 + ... 1/n

Here's a function (in Clojure) to test whether a number is a prime based on the above:

(defn harmonic [n]
  (apply + (for [i (range 1 (inc n))] 
             (/ 1 i))))

(defn possibly-prime? [n]
  (if (< n 4)
    (or (= n 2) (= n 3))
    (-> n dec harmonic numerator (mod (* n n)) zero?)))

PS: Thank you Colin Wright for the corrections.

Friday, 10 July 2015

Them

They were puppet masters of the first order, 
with thick supply of slimy hands that rose menacingly from their pulsating innards
and shone dimly with viscous Ichor. 
They did what they wished to do - destroyed what they disliked,
reproduced what they thought proper.

They had countless faces, each more captivating than the last, 
with searing fury and wrath itching behind their deceptively thin hides. 
They consumed the finest and the filthiest, 
growing twofold with each burp
 that made hills with frozen tops shiver and shudder.

They had a billion eyes that were almost always watching. 
They saw but didn't observe at times, and at times tortured entire communities. 
What they sought, we can only wonder, but it was not to be found here,
amidst sprawling meadows and bubbling brooks, 
for they are antitheses.

They came from somewhere deep in space. 
They poisoned our environment, spread vicious diseases, mutilated our land, 
and gave us gold and fish for our troubles. 
They never went back - just took to resting 
in this hopeless nauseous world they had created and seemed to tolerate.

Saturday, 4 July 2015

Jadugarni Alisha

I was supposed to go down to Hardoi to deliver some papers to the bank. I was seated comfortably in the cab, reading an interesting article about the Gita on the daily.

Hardoi is a small town in the backwaters of Uttar Pradesh and is a three hour drive away from Lucknow. I had been there once or twice before quite some time back, and remembered it as a queer old laidback town with decaying Mughal architecture and big, sprawling gardens. Someone had told me it was where the story of Hiranakashyap and Prahlad was based wherein the snobby king had been murdered by Lord Vishnu in his Narsimha avatar, ending his wicked rule.



As soon as I was free from the bank, I went to a small, bustling eatery and had a plate of puri-bhaji and a serving of the famous Sandila laddus. Afterwards, I strolled around the market smoking a cigarette I had bought at a paan shop on the previous crossing, paan in mouth.

After wandering around for some time, I saw a vendor selling haula peanuts in front of a dilapidated old building, and went to have a look. After asking the man to pack a good helping, I noticed a poster on the wall behind him. A crowned golden fish on a red backdrop was painted on the top left corner.’Jadugarni Alisha’, it said in bright rainbow colours- ‘Daily shows at 11:00 am, 1:00 pm, and 5:00 pm, Dream Theater’.

This piqued my interest, I took a look at my phone for the time. It was half past four and I was wondering whether I should go. Having nothing else to do and a heightened curiosity, I decided on a whim - “What is the way to Dream Theater, bhaiya?”



I bought a ticket at the counter, and entered a small dim-lit hall with shambly seating for twenty to thirty people, and a circular dais on one end. The red wall behind the dais was adorned with the same golden fish from the poster. I was alone and took a seat in the second row on the right, lighting another cigarette and opening the bag of peanuts.

By the time it was 5, eight to ten other people had come and were sitting haphazardly around the place. A light focused on the dais came up, and the rest of the room became pitch-black. A low drumming sound started echoing through the room, and a girl in her twenties wearing a large cloak and red hat with the fish entered the spotlight and stepped up on the dais. She had bronze skin and from her looks I guessed she was Bengali.
Jo dikhe aaj yahan, shak se naa dekhein usey. 
Ye aankhon ka dhoka nahi, ufanta sach hai.
(Do not doubt the authenticity of what you see here today.
This is revelation, not illusion.)

I was a little unnerved by this. I had expected an under-educated small-town girl doing run-of-the-mill tricks, but here she was - talking mystically in poems. I was probably frowning at this point, and I imagine I saw a hint of a smile when she looked my way.

I turned to look at the other people in the audience, but the hall was too dark and my eyes had adjusted to the light in front of me. I straightened up a bit and redirected all my attention towards this mysterious being.

She was now standing with her back to the audience, arms spread out like The Redeemer, head tilted back a little.
Ia!
The light falling on the podium started flashing, taking various colours. The room was silent and had an intense atmosphere. I could hear, or thought I could hear crickets chirping in the darkness around me.
Ia! Shub-Niggurath!
This incantation caused a flurry of confused emotions in me, and I could feel my stomach sink. Had I ever heard it before? I probably had, in whispered voices around a bonfire in Manali, from a group of Syrians who had travelled along the Rub’ al Khali.
Ia! Yog-Sothoth!
The lights were dancing like a whirling Dervish.
Mrit nahin voh - jo sadiyo jama hai,
Kuchh sadiyo mein toh maut bhi fanaa hai.
(That is not dead which can eternal lie,
And with strange aeons even death may die.)

The noise of chirping crickets had gained a startling intensity, and was ringing sharply in my head. It seemed to be malevolent and mocking, like shrill laughter echoing in a cave.
Yog-Sothoth dwar hai, aur Yog-Sothoth kundi.
Sab samay aur sthaan Yog-Sothoth mein ek hain.
(Yog-Sothoth is the gate, and Yog-Sothoth is the key.
Time and space are one in Yog-Sothoth.)
Aieei-k’tay, Yog-Sothoth, 
Aieei-k’tay!
Her arms were flapping around as if they were made of rubber. They seemed to be loosing shape, and taking on a glossy, slimy texture. Her hair were flying about, but there was no wind. Crickets were threatening to rupture my eardrums.
Ia! Ph’nglui mglw’nafh Cthulhu R’lyeh wgah’nagl fhtagn!
These words had been incanted by her - that I do not doubt one bit - but not in her orotund, fruity voice. It was the sound of those crickets shrieking inside my mind.

Then, right in front of me, the large cloak and hat fell to the ground in a heap. What I saw then, I will never forget. At first, I thought they were bees - swarming where the girl had just been. I wanted to believe they were bees.

But they were globules of floating light of every color known and unknown. They were bubbling among themselves - constantly in motion and very alive. I have no other means to describe it except as turbulent energy frothing forth from a slit in space.

Amidst that maddening sight, I saw Ape become Man. I saw Krishna in his divine form driving Arjuna to war, singing his Song. I saw Man kill Man. I saw tanks and rockets blow the earth to smithereens. I saw the Ocean turn scarlet and get vanquished by the insatiable Desert. I saw ancient temples of unknown deities sink to the deepest depths of space and age. I saw hideous, disembodied tongues relish rotting flesh. I saw sheep devouring humans, trees causing quakes, and stars distorting space.



I was sweating and shivering feverishly by the time I came to. The dais was vacant, the lights were on, and there was no one else in the hall.