Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

In 2003 We Discovered a New Way to Generate Primes

346.7K views
β€’
January 20, 2023
by
Eric Rowland
YouTube video player
In 2003 We Discovered a New Way to Generate Primes

TL;DR

A recurrence sequence that generates primes by adding the greatest common divisor (gcd) of two terms is analyzed, revealing patterns and properties.

Transcript

This is a recurrence that generates primes. It defines a sequence where the nth term R(n) is the previous term R(n - 1) plus the greatest common divisor of n and the previous term. You can think of it as a warped version of the Fibonacci recurrence, where the nth term is the previous term plus the term before that. One big difference though, is tha... Read More

Key Insights

  • 🫰 The sequence generates primes by adding the gcd of the index and the previous term, with the jumps determined by the smallest prime divisor of 2n-1.
  • πŸƒ The primes appear in clusters, and the length of the runs of 1s between clusters is related to the size of the smallest prime divisor.
  • πŸ‘» A shortcut formula allows for efficient computation of the sequence, skipping the 1s in each cluster.
  • πŸ‰ The initial term choices and variations of the sequence, such as using lcm instead of gcd, have different properties and behaviors.
  • #️⃣ The sequence does not include the prime number 2.
  • πŸ‘¨β€πŸ”¬ The computation of the sequence and understanding the patterns of primes generated by the recurrence sequence are ongoing research topics.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How does the recurrence sequence for prime generation work?

The sequence starts with an initial term and each subsequent term is obtained by adding the gcd of the index and the previous term. The jump to the next nontrivial gcd (not equal to 1) is determined by the smallest prime divisor of 2n-1.

Q: Why are all the gcds of the sequence prime numbers?

The gcds are related to the smallest prime divisors of 2n-1. In the nice situation where the value of the sequence is 3 times its index, the recurrence generates primes as the next nontrivial gcds.

Q: Can this recurrence sequence be used for prime discovery?

While the sequence generates primes, running the recurrence is not an efficient way to discover large primes. The shortcut formula requires determining primality independently before using it to skip the 1s in the sequence.

Q: What variations and related sequences have been explored?

Variations include starting with different initial terms and replacing the gcd with the least common multiple (lcm). The sequence with lcm generates terms that are always divisible by the previous term, and a separate open question involves the divisibility of the lcm by the previous term.

Key Insights:

  • The sequence generates primes by adding the gcd of the index and the previous term, with the jumps determined by the smallest prime divisor of 2n-1.
  • The primes appear in clusters, and the length of the runs of 1s between clusters is related to the size of the smallest prime divisor.
  • A shortcut formula allows for efficient computation of the sequence, skipping the 1s in each cluster.
  • The initial term choices and variations of the sequence, such as using lcm instead of gcd, have different properties and behaviors.
  • The sequence does not include the prime number 2.
  • The computation of the sequence and understanding the patterns of primes generated by the recurrence sequence are ongoing research topics.
  • The relationship between the recurrence sequence and the distribution of prime numbers in arithmetic progressions is a challenging open question.

Summary & Key Takeaways

  • The recurrent sequence starts with an initial term and each term is the previous term plus the gcd of the index and the previous term.

  • The sequence exhibits repetitive stretches of 1s interrupted by sudden jumps, with the jumps being determined by the smallest prime divisor of 2n-1.

  • The sequence shows clusters of primes, and a shortcut formula allows for efficient computation of the sequence.


Read in Other Languages (beta)

English

Share This Summary πŸ“š

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

β€’

Privacy

β€’

Guidelines

Β© 2026 Glasp Inc. All rights reserved.